﻿ 
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f0f2f7;
    --surface: #ffffff;
    --nav-bg: #0a1628;
    --accent: #c8973a;
    --accent2: #1a3a6b;
    --text: #1a1f2e;
    --muted: #7a8199;
    --border: #e4e8f0;
    --shadow: 0 4px 24px rgba(10,22,40,0.10);
    --shadow-lg: 0 12px 48px rgba(10,22,40,0.16);
    --radius: 18px;
    --nav-h: 68px;
    --menu-h: 52px;
    --c1: #1a3a6b;
    --c2: #c8973a;
    --c3: #1e6b4a;
    --c4: #6b1a3a;
    --c5: #1a5f6b;
    --c6: #4a1a6b;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
}

/* ══ NAVBAR ══ */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    background: var(--nav-bg);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 32px;
    justify-content: space-between;
    box-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(200,151,58,.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .brand-text strong {
        font-size: 1.05rem;
        font-weight: 900;
        color: #fff;
    }

    .brand-text span {
        font-size: .72rem;
        color: var(--accent);
        font-weight: 600;
    }

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-user-name {
    color: rgba(255,255,255,.75);
    font-size: .88rem;
    font-weight: 600;
}

.avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #a07020);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.15);
}

.nav-notif {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 17px;
    position: relative;
    transition: background .2s;
}

    .nav-notif:hover {
        background: rgba(255,255,255,.13);
    }

.notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--nav-bg);
}

/* ══ MENU BAR ══ */
.menu-bar {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    height: var(--menu-h);
    background: #132038;
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 99;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    overflow-x: auto;
}

    .menu-bar::-webkit-scrollbar {
        display: none;
    }

.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,.55);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s, background .2s;
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
}

    .menu-link .m-icon {
        font-size: 16px;
    }

    .menu-link:hover {
        color: #fff;
        background: rgba(255,255,255,.07);
    }

    .menu-link.active {
        color: var(--accent);
        background: rgba(200,151,58,.12);
    }

        .menu-link.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 16px;
            right: 16px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px 2px 0 0;
        }

    .menu-link .badge {
        background: #e74c3c;
        color: #fff;
        font-size: .62rem;
        font-weight: 800;
        padding: 1px 6px;
        border-radius: 99px;
        line-height: 1.4;
    }

.menu-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    margin-right: auto;
}

    .menu-hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255,255,255,.7);
        border-radius: 2px;
        margin: 4px 0;
        transition: transform .3s, opacity .3s;
    }

    .menu-hamburger.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-hamburger.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

.mobile-drawer {
    position: fixed;
    top: calc(var(--nav-h) + var(--menu-h));
    inset-inline: 0;
    background: #0f1d30;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 98;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

    .mobile-drawer.open {
        transform: translateY(0);
    }

    .mobile-drawer .menu-link {
        padding: 11px 14px;
        font-size: .93rem;
    }

/* ══ PAGE WRAPPER ══ */
.page {
    padding-top: calc(var(--nav-h) + var(--menu-h));
    min-height: 100vh;
    flex-direction: column;
}

    .page.active {
        display: flex;
    }

/* ══ HERO STRIP ══ */
.hero-strip {
    background: linear-gradient(135deg, var(--accent2) 0%, #0d2144 60%, #0a1628 100%);
    padding: 40px 40px 80px;
    position: relative;
    overflow: hidden;
}

    .hero-strip::before {
        content: '';
        position: absolute;
        top: -60px;
        left: -60px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(200,151,58,.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .hero-strip .hero-bg-icon {
        position: absolute;
        left: 40px;
        bottom: 10px;
        font-size: 110px;
        opacity: .06;
        pointer-events: none;
    }

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-greeting {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

    .hero-title span {
        color: var(--accent);
    }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-date {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 10px 18px;
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-add-hero {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(200,151,58,.4);
}

    .btn-add-hero:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

/* stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,.1);
}

.stat-item {
    background: rgba(255,255,255,.05);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background .2s;
}

    .stat-item:hover {
        background: rgba(255,255,255,.1);
    }

.stat-val {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

    .stat-val span {
        color: var(--accent);
        font-size: 1rem;
    }

.stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

/* ══ CONTENT ══ */
.content {
    flex: 1;
    padding: 0 32px 48px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
        min-width: 40px;
    }

/* ══ TABLE CARD ══ */
.table-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: cardIn .45s both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* toolbar */
.table-toolbar {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    flex: 1;
    min-width: 180px;
    transition: border-color .2s;
}

    .search-box:focus-within {
        border-color: var(--accent2);
    }

    .search-box input {
        border: none;
        background: transparent;
        font-family: 'Cairo', sans-serif;
        font-size: .88rem;
        color: var(--text);
        outline: none;
        width: 100%;
    }

        .search-box input::placeholder {
            color: var(--muted);
        }

.filter-select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: 'Cairo', sans-serif;
    font-size: .85rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}

    .filter-select:focus {
        border-color: var(--accent2);
    }

.btn-add {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--accent);
    border: none;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .15s;
    box-shadow: 0 3px 12px rgba(200,151,58,.3);
    white-space: nowrap;
}

    .btn-add:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

.btn-export {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}

    .btn-export:hover {
        border-color: var(--accent2);
        color: var(--accent2);
    }

/* table */
.tbl-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead tr {
    background: #f6f8fc;
}

thead th {
    padding: 13px 16px;
    text-align: right;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

    tbody tr:last-child {
        border-bottom: none;
    }

    tbody tr:hover {
        background: #f9fafc;
    }

td {
    padding: 13px 16px;
    font-size: .88rem;
    vertical-align: middle;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: .74rem;
    font-weight: 700;
}

    .badge-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.s-available {
    background: #eefff5;
    color: #1e6b4a;
}

.s-rented {
    background: #eef2ff;
    color: #1a3a6b;
}

.s-maintenance {
    background: #fff8ee;
    color: #c8973a;
}

.s-inactive {
    background: #f5f5f5;
    color: #888;
}

.s-active {
    background: #eefff5;
    color: #1e6b4a;
}

.s-pending {
    background: #fff8ee;
    color: #c8973a;
}

.s-completed {
    background: #eef2ff;
    color: #1a3a6b;
}

.s-cancelled {
    background: #fff0f0;
    color: #c0392b;
}

.s-overdue {
    background: #fff0f0;
    color: #c0392b;
}

.s-paid {
    background: #eefff5;
    color: #1e6b4a;
}

.s-unpaid {
    background: #fff0f0;
    color: #c0392b;
}

.s-partial {
    background: #fff8ee;
    color: #c8973a;
}

.s-open {
    background: #fff8ee;
    color: #c8973a;
}

.s-closed {
    background: #f5f5f5;
    color: #888;
}

.s-gold {
    background: #fff8ee;
    color: #c8973a;
}

.s-silver {
    background: #f5f5f5;
    color: #555;
}

.s-platinum {
    background: #eef2ff;
    color: #1a3a6b;
}

.s-new {
    background: #eefff5;
    color: #1e6b4a;
}

.tbl-actions {
    display: flex;
    gap: 6px;
}

.tbl-btn {
    padding: 5px 11px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: 'Cairo', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all .18s;
    white-space: nowrap;
}

    .tbl-btn:hover {
        border-color: var(--accent2);
        color: var(--accent2);
    }

    .tbl-btn.danger:hover {
        border-color: #e74c3c;
        color: #e74c3c;
    }

    .tbl-btn.success:hover {
        border-color: #1e6b4a;
        color: #1e6b4a;
    }

/* avatar cell */
.cell-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.cell-name {
    font-weight: 700;
    font-size: .88rem;
}

.cell-sub {
    font-size: .75rem;
    color: var(--muted);
}

/* star rating */
.stars {
    color: #f0c040;
    font-size: .85rem;
    letter-spacing: 1px;
}

/* pagination */
.tbl-footer {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.tbl-info {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 4px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    transition: all .15s;
    font-family: 'Cairo', sans-serif;
}

    .page-btn:hover, .page-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }

/* ══ HOME MODULES GRID ══ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.module-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s, border-color .28s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: cardIn .5s both;
}

    .module-card:nth-child(1) {
        animation-delay: .05s;
    }

    .module-card:nth-child(2) {
        animation-delay: .10s;
    }

    .module-card:nth-child(3) {
        animation-delay: .15s;
    }

    .module-card:nth-child(4) {
        animation-delay: .20s;
    }

    .module-card:nth-child(5) {
        animation-delay: .25s;
    }

    .module-card:nth-child(6) {
        animation-delay: .30s;
    }

    .module-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: var(--card-color, var(--accent));
        border-radius: var(--radius) var(--radius) 0 0;
        transition: height .28s;
    }

    .module-card::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, var(--card-color, var(--accent)) 0%, transparent 70%);
        opacity: 0;
        transition: opacity .3s, transform .3s;
        border-radius: 50%;
    }

    .module-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--card-color, var(--accent));
    }

        .module-card:hover::before {
            height: 6px;
        }

        .module-card:hover::after {
            opacity: .07;
            transform: scale(1.3);
        }

.card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--card-bg, #f0f4ff);
    display: grid;
    place-items: center;
    font-size: 26px;
    transition: transform .28s;
    flex-shrink: 0;
}

.module-card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}

.card-body {
    flex: 1;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.card-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-count {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
}

    .card-count strong {
        font-size: 1.05rem;
        font-weight: 900;
        color: var(--card-color, var(--accent));
    }

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--card-bg, #f0f4ff);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--card-color, var(--accent));
    transition: background .2s, transform .2s;
}

.module-card:hover .card-arrow {
    background: var(--card-color, var(--accent));
    color: white;
    transform: translateX(-4px);
}

.card-cars {
    --card-color: var(--c1);
    --card-bg: #eef2ff;
}

.card-clients {
    --card-color: var(--c2);
    --card-bg: #fff8ee;
}

.card-maint {
    --card-color: var(--c3);
    --card-bg: #eefff5;
}

.card-reports {
    --card-color: var(--c4);
    --card-bg: #ffeef5;
}

.card-finance {
    --card-color: var(--c5);
    --card-bg: #eef8ff;
}

.card-partners {
    --card-color: var(--c6);
    --card-bg: #f5eeff;
}

/* quick actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s;
    box-shadow: var(--shadow);
}

    .quick-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(200,151,58,.2);
    }

    .quick-btn.primary {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
        box-shadow: 0 4px 20px rgba(200,151,58,.35);
    }

        .quick-btn.primary:hover {
            filter: brightness(1.1);
            color: white;
        }

/* ══ NOTIFICATION PANEL ══ */
.notif-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

    .notif-overlay.open {
        display: block;
    }

.notif-panel {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 24px;
    width: 360px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(10,22,40,.22), 0 0 0 1px rgba(0,0,0,.06);
    z-index: 201;
    overflow: hidden;
    transform: translateY(-12px) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s;
}

    .notif-panel.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }

.notif-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

    .notif-header h3 {
        font-size: 1rem;
        font-weight: 800;
        color: var(--text);
    }

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-count-badge {
    background: #e74c3c;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
}

.mark-all-btn {
    font-family: 'Cairo', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .2s;
}

    .mark-all-btn:hover {
        background: rgba(200,151,58,.1);
    }

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

    .notif-list::-webkit-scrollbar {
        width: 4px;
    }

    .notif-list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

.notif-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .18s;
    position: relative;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: #f8f9fc;
    }

    .notif-item.unread {
        background: #fffbf3;
    }

        .notif-item.unread::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
        }

.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: .87rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.3;
}

.notif-desc {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.5;
}

.notif-time {
    font-size: .7rem;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 600;
}

.notif-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

    .notif-footer a {
        color: var(--accent2);
        font-size: .83rem;
        font-weight: 700;
        text-decoration: none;
    }

        .notif-footer a:hover {
            text-decoration: underline;
        }

/* ══ MODAL ══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,.55);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}

    .modal-overlay.open {
        display: flex;
    }

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn .3s cubic-bezier(.4,0,.2,1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.93) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
}

    .modal-header h2 {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: all .2s;
}

    .modal-close:hover {
        background: #fee;
        border-color: #e74c3c;
        color: #e74c3c;
    }

.modal-body {
    padding: 24px 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

    .form-row.single {
        grid-template-columns: 1fr;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
}

.form-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .2s;
}

    .form-input:focus {
        border-color: var(--accent2);
        background: white;
    }

.form-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

    .form-select:focus {
        border-color: var(--accent2);
    }

.form-section-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-cancel {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    transition: all .2s;
}

    .btn-cancel:hover {
        border-color: var(--text);
        color: var(--text);
    }

.btn-save {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s;
    box-shadow: 0 3px 12px rgba(200,151,58,.3);
}

    .btn-save:hover {
        filter: brightness(1.1);
    }

/* ══ REPORTS GRID ══ */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.report-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: all .25s;
    cursor: pointer;
    animation: cardIn .5s both;
}

    .report-card:hover {
        border-color: var(--card-color, var(--accent));
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.report-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.report-name {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.report-desc {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.5;
}

.report-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-period {
    font-size: .74rem;
    color: var(--muted);
    font-weight: 600;
}

.btn-run {
    padding: 5px 12px;
    border-radius: 7px;
    background: var(--card-color, var(--accent));
    color: white;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

/* ══ CHART PLACEHOLDER ══ */
.chart-placeholder {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.chart-bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--accent2), var(--accent));
    transition: opacity .2s;
    cursor: pointer;
}

    .chart-bar:hover {
        opacity: .8;
    }

.chart-bar-label {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 600;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hero-strip {
        padding: 28px 24px 70px;
    }

    .content {
        padding: 0 20px 40px;
    }

    nav {
        padding: 0 20px;
    }

    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .menu-bar .menu-link {
        display: none;
    }

    .menu-hamburger {
        display: block;
    }

    .notif-panel {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-strip {
        padding: 22px 16px 60px;
    }

    .content {
        padding: 0 14px 32px;
        margin-top: -30px;
    }

    nav {
        padding: 0 16px;
    }

    .nav-user-name {
        display: none;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}
.col-form-label {
    color: #c8973a;
    font-size: 18px !important;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

 
