* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #141414;
    --bg-tertiary: #1C1C1C;
    --bg-quaternary: #252525;
    --accent: #C8A84B;
    --gold: #C8A84B;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-tertiary: #999999;
    --border: #333333;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --info: #2196F3;
}

body.light-theme {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #EEEEEE;
    --bg-quaternary: #E0E0E0;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-tertiary: #999999;
    --border: #DDDDDD;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    flex-wrap: nowrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    min-width: 0;
}

.topbar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-wrapper {
    flex: 1;
    max-width: 300px;
    min-width: 0;
    position: relative;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #DDDDDD;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
}
body.light-theme .hamburger-btn {
    color: #777777;
}

.search-toggle {
    display: none;
    background: none;
    border: none;
    color: #DDDDDD;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
body.light-theme .search-toggle {
    color: #777777;
}
.search-toggle:hover {
    color: var(--gold);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--accent);
}

.sign-out-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
}

.sign-out-btn:hover {
    color: var(--accent);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--accent);
}

.theme-switch {
    position: relative;
    width: 78px;
    height: 30px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: background 0.3s, border-color 0.2s;
}
.theme-switch:hover {
    border-color: var(--gold);
}

.theme-switch .ts-label {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--text-secondary);
    pointer-events: none;
}
.theme-switch .ts-label-dark { left: 4px; right: 28px; }
.theme-switch .ts-label-light { left: 28px; right: 4px; display: none; }
body.light-theme .theme-switch .ts-label-dark { display: none; }
body.light-theme .theme-switch .ts-label-light { display: flex; }

.theme-switch .ts-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transform: translateX(48px);
}
body.light-theme .theme-switch .ts-thumb {
    transform: translateX(0);
}

.theme-switch .ts-icon {
    width: 14px;
    height: 14px;
    color: #0D0D0D;
    stroke-width: 2.5;
}
.theme-switch .ts-icon-sun { display: none; }
body.light-theme .theme-switch .ts-icon-sun { display: block; }
body.light-theme .theme-switch .ts-icon-moon { display: none; }

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 62px;
    width: 230px;
    height: calc(100vh - 62px);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
}

.cash-widget {
    background: linear-gradient(135deg, #1a1a1a 0%, #0D0D0D 100%);
    border-bottom: 1px solid var(--border);
    padding: 16px 14px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.cash-widget-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 6px;
}
.cash-widget-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}
.cash-widget-amount.positive { color: #4CAF50; }
.cash-widget-amount.negative { color: #E05050; }
.cash-widget-sub {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}
.cash-widget-sub span { display: inline-block; }

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-section {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    padding: 0 15px;
    margin-bottom: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent);
}

.sidebar-item.active {
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent);
    color: var(--accent);
}

.sidebar-item .emoji {
    font-size: 18px;
}

.notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #DDDDDD;
}
body.light-theme .notification-btn {
    color: #777777;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger);
    color: white;
    border-radius: 999px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
    flex-shrink: 0;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 230px;
    margin-top: 62px;
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    height: calc(100vh - 62px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* COMMON COMPONENTS */
.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(200, 168, 75, 0.1);
}

.button {
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.button.secondary {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.input, select, textarea {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* KANBAN BOARD */
.kanban-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px;
    min-width: 280px;
    flex-shrink: 0;
}

.kanban-header {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-count {
    background-color: var(--bg-quaternary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.task-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(200, 168, 75, 0.15);
}

.task-card.chained {
    border-left: 3px solid var(--accent);
}

.task-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-tertiary);
    align-items: center;
}

.task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.task-priority.high {
    background-color: var(--danger);
}

.task-priority.medium {
    background-color: var(--warning);
}

.task-priority.low {
    background-color: var(--info);
}

.task-assignee {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--bg-primary);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    position: relative;
}

.modal-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* LOGIN PAGE */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #0D0D0D 0%, #1C1C1C 100%);
}

.login-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent);
}

.login-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 30px;
    font-size: 13px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .input {
    width: 100%;
}

.login-form .button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

/* SMS VERIFICATION */
.sms-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sms-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sms-code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

/* NOTIFICATIONS */
.notification-panel {
    position: fixed;
    top: 62px;
    right: 0;
    width: 350px;
    max-height: calc(100vh - 62px);
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: none;
    flex-direction: column;
    z-index: 95;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.notification-panel.active {
    display: flex;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: var(--bg-tertiary);
}

.notification-item.unread {
    background-color: rgba(200, 168, 75, 0.1);
    color: var(--text-primary);
    font-weight: 500;
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 5px;
}

/* TASK DETAIL */
.task-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.task-detail-main {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.task-detail-sidebar {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.task-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.task-stage-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
    margin-bottom: 15px;
}

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

.stage-button {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.stage-button:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.stage-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* PROGRESS BAR */
.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    gap: 2px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-segment {
    flex: 1;
    background-color: var(--bg-quaternary);
}

.progress-segment.new {
    background-color: #9E9E9E;
}

.progress-segment.assigned {
    background-color: #2196F3;
}

.progress-segment.in_progress {
    background-color: #FF9800;
}

.progress-segment.under_review {
    background-color: #9C27B0;
}

.progress-segment.completed {
    background-color: #4CAF50;
}

/* COMING SOON */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon-text {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* TABLE */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .task-detail {
        grid-template-columns: 1fr;
    }

    .kanban-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Search becomes magnifying-glass icon */
    .search-toggle {
        display: inline-flex;
    }
    .search-wrapper {
        display: none;
    }
    .search-wrapper.expanded {
        display: block;
        position: fixed;
        top: 14px;
        left: 50px;
        right: 0;
        max-width: none;
        z-index: 150;
    }
    #globalSearch {
        max-width: 100% !important;
    }
}

.team-row {
    display: contents;
}

@media (max-width: 768px) {
    /* Topbar */
    .topbar {
        justify-content: flex-start;
        gap: 6px;
        padding: 0 12px;
    }
    .topbar-left {
        gap: 8px;
    }
    .topbar-right {
        gap: 4px;
        margin-left: auto;
    }
    .hamburger-btn {
        display: inline-flex;
    }
    .sign-out-text {
        display: none;
    }
    #topbarUserName {
        font-size: 12px !important;
    }
    .theme-switch {
        width: 64px;
        height: 26px;
    }
    .theme-switch .ts-thumb {
        width: 20px;
        height: 20px;
        transform: translateX(38px);
    }
    body.light-theme .theme-switch .ts-thumb {
        transform: translateX(0);
    }
    .theme-switch .ts-icon {
        width: 11px;
        height: 11px;
    }
    .theme-switch .ts-label {
        font-size: 7px;
        letter-spacing: 0.8px;
    }
    .theme-switch .ts-label-dark { left: 3px; right: 24px; }
    .theme-switch .ts-label-light { left: 24px; right: 3px; }

    #teamScroller > div {
        padding: 3px 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    #teamScroller > div > span {
        width: 18px !important;
        height: 18px !important;
        font-size: 8px !important;
    }
    .team-row {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        padding: 6px 12px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        z-index: 99;
        overflow-x: auto;
        white-space: nowrap;
        height: 36px;
    }

    /* Sidebar: off-canvas drawer */
    .sidebar {
        position: fixed;
        left: -100%;
        width: 100%;
        max-width: 220px;
        height: calc(100% - 98px);
        top: 98px;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border);
        transition: left 0.3s;
        z-index: 200;
        overflow-y: auto;
    }
    .sidebar.open {
        left: 0;
    }

    /* Main content */
    .main-content {
        margin-left: 0 !important;
        margin-top: 98px;
        height: calc(100vh - 98px);
        padding: 20px !important;
    }
    /* Non-admin: no second row, collapse offsets back to topbar height */
    body.no-team-row .main-content {
        margin-top: 62px;
        height: calc(100vh - 62px);
    }
    body.no-team-row .sidebar {
        top: 62px;
        height: calc(100% - 62px);
    }
    .cash-widget {
        order: -1;
    }
    .page-title {
        font-size: 24px;
    }
    .notification-panel {
        width: 280px;
        max-width: 90vw;
    }

    /* Kanban */
    .kanban-container {
        overflow-x: auto;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    /* Data table → stacked card */
    .data-table {
        display: block;
    }
    .data-table thead {
        display: none;
    }
    .data-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 6px;
        overflow: hidden;
    }
    .data-table td {
        display: block;
        padding: 8px;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    .data-table td:last-child {
        border-bottom: none;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-quaternary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* SEARCH BAR */
.search-results {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background-color: var(--bg-tertiary);
}

.search-result-type {
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.search-result-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ACTIVITY FEED TIMELINE */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.activity-item {
    position: relative;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.activity-content {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CHART STYLES */
.chart-container {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 100px;
    text-align: right;
}

.chart-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.chart-bar {
    height: 100%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-value {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: right;
}

/* DUE DATE ALERTS */
.due-overdue {
    border-left: 3px solid var(--danger) !important;
    color: var(--danger);
}

.due-today {
    border-left: 3px solid var(--warning) !important;
    color: var(--warning);
}

.due-week {
    border-left: 3px solid var(--info) !important;
    color: var(--info);
}

.overdue-badge {
    background: var(--danger);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

