body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 193, 7, 0.18), transparent 22%),
        linear-gradient(180deg, #f8faff 0%, #edf2fb 100%);
    min-height: 100vh;
    color: #21304d;
}

.app-shell {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 30px 70px rgba(25, 42, 89, 0.14);
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0d6efd, #fd7e14);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

.sidebar {
    width: 320px;
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 320px;
    align-self: stretch;
    background: transparent;
}

.sidebar-panel {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(140, 164, 207, 0.3);
    box-shadow: 0 24px 60px rgba(40, 62, 112, 0.12);
    border-radius: 1.75rem;
    backdrop-filter: blur(18px);
}

.sidebar-brand {
    padding: 0.5rem;
}

.sidebar-section-label {
    color: #6b7a98;
    letter-spacing: 0.08em;
    padding: 0 0.5rem;
}

.nav-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(32, 57, 107, 0.2);
    transition: 0.2s ease-in-out;
}

.sidebar .nav-link {
    color: #41506d;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #0f2d66;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(120, 152, 214, 0.25);
    box-shadow: 0 10px 24px rgba(73, 101, 160, 0.12);
}

.sidebar .nav-link.active .nav-dot,
.sidebar .nav-link:hover .nav-dot {
    background: linear-gradient(135deg, #0d6efd, #fd7e14);
}

.sidebar-profile {
    margin-top: auto;
    padding: 1rem;
    border-radius: 1.3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.82));
    border: 1px solid rgba(120, 152, 214, 0.18);
}

.content-shell {
    min-height: 100vh;
    align-items: stretch;
}

.topbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(19, 37, 79, 0.08);
    box-shadow: 0 12px 36px rgba(34, 54, 96, 0.08);
}

.mobile-menu-toggle {
    width: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 110, 253, 0.18);
    color: #0d6efd;
    box-shadow: 0 10px 24px rgba(24, 52, 105, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background: #fff;
    color: #0b5ed7;
    border-color: rgba(13, 110, 253, 0.24);
    box-shadow: 0 14px 28px rgba(24, 52, 105, 0.18);
    transform: translateY(-1px);
}

.mobile-menu-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    fill: none;
}

.main-content {
    min-width: 0;
    overflow-x: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(19, 37, 79, 0.08);
    box-shadow: 0 18px 48px rgba(22, 35, 75, 0.08);
    border-radius: 1.5rem;
}

.stat-card {
    border: 0;
    border-radius: 1.4rem;
    overflow: hidden;
}

.stat-card-primary {
    background: linear-gradient(135deg, #0d6efd, #3d8bfd);
}

.stat-card-warm {
    background: linear-gradient(135deg, #fd7e14, #ffb347);
}

.stat-card-dark {
    background: linear-gradient(135deg, #212529, #495057);
}

.table thead th {
    color: #5c6b89;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.03);
}

.form-panel {
    border-radius: 1.4rem;
    overflow: hidden;
}

.badge-soft {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-soft-dark {
    background: rgba(33, 37, 41, 0.08);
    color: #212529;
}

.pagination {
    --bs-pagination-border-radius: 999px;
    --bs-pagination-color: #20396b;
    --bs-pagination-hover-color: #0d6efd;
    --bs-pagination-hover-bg: #e7f1ff;
    --bs-pagination-active-bg: #0d6efd;
    --bs-pagination-active-border-color: #0d6efd;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: min(320px, 86vw);
        min-width: min(320px, 86vw);
        max-width: min(320px, 86vw);
        flex-basis: auto;
        padding: 0.9rem !important;
    }

    .sidebar-panel {
        min-height: 100%;
        border-radius: 1.35rem;
        border: 1px solid rgba(140, 164, 207, 0.22);
        box-shadow: 0 18px 40px rgba(17, 38, 77, 0.12);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    }

    .sidebar.offcanvas-lg {
        background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
        backdrop-filter: none;
        box-shadow: 0 18px 40px rgba(17, 38, 77, 0.18);
    }

    .sidebar.offcanvas-lg .offcanvas-header {
        display: flex;
        padding: 0.95rem 0.95rem 0.7rem;
        border-bottom: 1px solid rgba(120, 152, 214, 0.14);
        background: transparent;
    }

    .topbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .admin-topbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
    }

    .admin-topbar .h4 {
        font-size: 1.1rem;
    }

    .admin-topbar-actions {
        margin-left: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .admin-topbar-actions .btn-outline-danger {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}
