@font-face {
    font-family: system-ui;
    src: local("Tahoma");
}

:root {
    --gz-blue: #0b2f6b;
    --gz-blue-2: #0f4fa8;
    --gz-gold: #f5b942;
    --gz-bg: #f3f6fb;
    --gz-card: #ffffff;
    --gz-text: #172033;
    --gz-muted: #6b7280;
    --gz-border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15,79,168,.12), transparent 32%),
        linear-gradient(135deg, #f8fbff, var(--gz-bg));
    color: var(--gz-text);
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 290px;
    background: linear-gradient(180deg, var(--gz-blue), #061a3b);
    color: #fff;
    padding: 22px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(0,0,0,.08);
}

.media-sidebar {
    background: linear-gradient(180deg, #0d3f3a, #06211f);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    margin-bottom: 18px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gz-gold), #fff2ba);
    color: #1f2937;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(245,185,66,.28);
}

.brand-title {
    font-weight: 800;
    font-size: 17px;
}

.brand-subtitle {
    font-size: 12px;
    opacity: .75;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    color: rgba(255,255,255,.82);
    padding: 11px 12px;
    border-radius: 14px;
    font-size: 14px;
    transition: all .2s ease;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
    transform: translateX(-3px);
}

.main-area {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

.topbar {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 24px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 18px 40px rgba(15,47,107,.08);
    margin-bottom: 18px;
}

.topbar h1 {
    font-size: 23px;
    margin: 0 0 6px;
    font-weight: 900;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--gz-border);
    border-radius: 18px;
    padding: 8px 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gz-blue-2), var(--gz-blue));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.notification-pill {
    background: #fff8e8;
    color: #7a4b00;
    border: 1px solid #ffe1a3;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.content-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 22px 55px rgba(15,47,107,.08);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--gz-border);
    border-radius: 22px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    left: -30px;
    top: -30px;
    border-radius: 50%;
    background: rgba(15,79,168,.08);
}

.stat-label {
    color: var(--gz-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gz-blue);
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: var(--gz-muted);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--gz-border);
}

.table tbody td {
    font-size: 14px;
    padding: 14px 10px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(245,185,66,.18), transparent 30%),
        linear-gradient(135deg, #061a3b, #0b2f6b);
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,.96);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.login-card h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 11px 13px;
}

.btn {
    border-radius: 14px;
    padding-right: 18px;
    padding-left: 18px;
}

.btn-primary {
    background: var(--gz-blue-2);
    border-color: var(--gz-blue-2);
}

@media (max-width: 992px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-radius: 0 0 24px 24px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .main-area {
        padding: 14px;
    }

    .content-card {
        padding: 16px;
        border-radius: 20px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .topbar h1 {
        font-size: 19px;
    }
}
.notification-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff8e8;
    color: #7a4b00;
    border: 1px solid #ffe1a3;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
}

.notification-pill:hover {
    color: #4a2d00;
    background: #fff1cf;
}
@media print {
    .sidebar,
    .topbar-actions,
    .no-print,
    .btn,
    form {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .main-area {
        padding: 0;
    }

    .content-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    body {
        background: #fff;
    }

    table {
        font-size: 11px;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.stat-link {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.stat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.dashboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8eef7;
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.dashboard-item:hover {
    background: #f8fbff;
    border-color: #cfe1ff;
    color: inherit;
}

.dashboard-item-new {
    background: #fff8e8;
    border-color: #ffe1a3;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-card {
    display: block;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8eef7;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.quick-action-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.quick-action-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: #cfe1ff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

@media (max-width: 992px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
.sidebar-section-title {
    margin: 18px 8px 8px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: -0.2px;
}

.sidebar-nav a {
    position: relative;
}

.sidebar-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-accordion {
    padding-bottom: 24px;
}

.sidebar-single,
.sidebar-toggle,
.sidebar-submenu a {
    width: 100%;
}

.sidebar-toggle {
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 6px;
}

.sidebar-toggle:hover,
.sidebar-toggle.open {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.sidebar-arrow {
    font-size: 13px;
    transition: 0.2s ease;
}

.sidebar-toggle.open .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    padding: 4px 8px 8px;
    margin-bottom: 4px;
}

.sidebar-submenu.open {
    display: block;
}

.sidebar-submenu a {
    display: block;
    padding: 10px 14px;
    margin: 3px 0;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
    position: relative;
}

.sidebar-submenu a:hover,
.sidebar-submenu a.active,
.sidebar-single.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar-single {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.sidebar-single:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.sidebar-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}
.sidebar-form {
    margin: 3px 0;
}

.sidebar-form-btn {
    width: 100%;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 14px;
    border-radius: 13px;
    text-align: right;
    font-size: 13px;
    transition: 0.2s ease;
}

.sidebar-form-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    margin-right: 6px;
}
.calendar-wrap {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 24px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f8fafc;
    border-bottom: 1px solid #e8eef7;
}

.calendar-weekdays div {
    padding: 14px;
    text-align: center;
    font-weight: 800;
    color: #334155;
    font-size: 13px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
    min-height: 170px;
    padding: 12px;
    border-left: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.calendar-empty {
    background: #f8fafc;
}

.calendar-today {
    background: #fff8e8;
}

.calendar-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-date strong {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-date span {
    color: #94a3b8;
    font-size: 11px;
}

.calendar-events {
    display: grid;
    gap: 8px;
}

.calendar-event {
    padding: 10px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    font-size: 12px;
}

.calendar-event-deadline {
    background: #fff7ed;
    border-color: #fed7aa;
}

.calendar-event-overdue {
    background: #fff1f2;
    border-color: #fecdd3;
}

@media (max-width: 1200px) {
    .calendar-grid,
    .calendar-weekdays {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-weekdays {
        display: none;
    }
}

@media (max-width: 576px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: auto;
    }
}
