/* Task Tracker Sidebar Styles */

/* Layout */
.task_tracker_sides_separator {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 6rem;
}

.task_tracker_left_side_section {
    width: 288px;
    min-width: 288px;
    background: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .task_tracker_left_side_section {
        width: 230px;
        min-width: 230px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .task_tracker_left_side_section {
        display: none;
    }
    
    .task_tracker_sides_separator {
        flex-direction: column;
    }
}

.task_tracker_right_side_section {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    padding: 0;
}



/* Sidebar Menu Styles */

/* Task Tracker Sidebar Layout */
/* Left Sidebar Menu Styles */
.task_tracker_left_side_menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
}

/* Active state for menu items */

/* Agenda Submenu Styles */
.task_tracker_agenda_submenu {
    margin-top: 8px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: slideDown 0.3s ease-out;
}

.task_tracker_agenda_submenu_item {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.task_tracker_agenda_submenu_item:hover {
    background-color: var(--light-bg);
}

.task_tracker_agenda_submenu_text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task_tracker_menu_item_container {
    position: relative;
}

.task_tracker_menu_item {
    width: 100%;
    background-color: #282D3B;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    text-align: left;
}

.task_tracker_menu_item:hover {
    background-color: #1a1e2a;
}

.task_tracker_menu_item.active {
    background-color: #1a1e2a;
    color: #d17819;
    font-weight: 600;
}

.task_tracker_menu_item_text {
    flex: 1;
}

.task_tracker_menu_item_arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task_tracker_menu_item_arrow svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.task_tracker_menu_item.expandable .task_tracker_menu_item_arrow svg {
    transform: rotate(0deg);
}

/* Submenu Styles */
.task_tracker_submenu_item {
    padding: 6px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    opacity: 1;
    transform: none;
    position: relative;
    margin-left: 0;
    white-space: nowrap;
}

.task_tracker_submenu_item.active {
    color: var(--primary-color);
    background: rgba(40, 45, 59, 0.08);
    font-weight: 600;
}

.task_tracker_submenu_item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
    z-index: 15;
    opacity: 0;
}

.task_tracker_submenu_item:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
    transform: translateY(0) translateX(2px);
}

/* Active submenu item - same style as active category (light background, blue border) */
/* Fallback for old style - dark background */
.task_tracker_submenu_item:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Submenu Container */
.task_tracker_submenu {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    margin-left: 20px;
    animation: slideDown 0.3s ease-out;
}

.task_tracker_submenu.show {
    display: flex;
}

/* Menu Separator */
.task_tracker_menu_separator {
    height: 2px;
    background-color: #f4d03f;
    border-radius: 1px;
    margin: 15px 0;
    width: 100%;
}

/* Mobile Subcategory Menu */
.task_tracker_mobile_subcat_header h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.task_tracker_mobile_subcat_items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task_tracker_mobile_subcat_item {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.task_tracker_mobile_subcat_item:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task_tracker_mobile_subcat_item:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
}



/* PrimeReact Sidebar Overrides */

/* PrimeReact Sidebar overrides for mobile left menu */
.p-sidebar-left .p-sidebar {
    width: 280px;
    max-width: 85vw;
    background: #ffffff;
}

.p-sidebar .p-sidebar-content {
    padding: 0;
    overflow-y: auto;
}

.p-sidebar .p-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.p-sidebar .p-sidebar-header .p-sidebar-close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #6b7280;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-sidebar .p-sidebar-header .p-sidebar-close:hover {
    background-color: rgba(40, 45, 59, 0.06);
    color: #282d3b;
}

/* Ensure contacts list inside sidebar renders cleanly */
.p-sidebar .contacts_list_container {
    margin: 0 1rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Ensure left menu inside sidebar has proper padding */
.p-sidebar .task_tracker_left_side_menu {
    padding: 1rem;
}

/* Hide sidebar mask on desktop */
@media screen and (min-width: 769px) {
    .p-sidebar-mask {
        display: none !important;
    }
}
