/* =========================================================================
   SHIPMENT SAATHI — CORE BRAND THEME & DESIGN SYSTEM
   Brand Palette Derived from Official "SHIPMENT SAATHI" Logo:
   - Royal Navy Blue ("SHIPMENT" + Parcel Icon): #0B2C6D / #071D49 / #051436
   - Express Orange ("SAATHI" + Speed Swoosh):  #F27420 / #DF5E0B / #FFF5ED
   - Charcoal Tagline ("HAR SHIPMENT KA BHAROSA"): #091E42 / #1E293B / #334155
   ========================================================================= */

:root {
    --brand-navy: #113177;
    --brand-navy-dark: #0B2255;
    --brand-navy-deep: #07163B;
    --brand-navy-light: #1D4ED8;
    --brand-navy-soft: #EEF4FF;

    --brand-primary: #FF7822;
    --brand-primary-dark: #E05E0B;
    --brand-primary-soft: #FFF5ED;
    --brand-primary-border: #FED7AA;

    --brand-indigo: #113177;

    --bg-main: #F1F5F9;
    --bg-sidebar: #06183D;
    --bg-card: #FFFFFF;

    /* High-contrast text tokens for crisp readability */
    --text-main: #091E42;
    --text-body: #1E293B;
    --text-muted: #475569;
    --border-color: #CBD5E1;
    --border-subtle: #E2E8F0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* =========================================================================
   APP SHELL & LIQUID GLASS NAVIGATION (SIDEBAR + TOPBAR)
   ========================================================================= */

.shell {
    display: grid;
    grid-template-columns: 274px 1fr;
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 18% 85%, rgba(249, 115, 22, 0.10) 0%, transparent 42%),
        radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.08) 0%, transparent 36%),
        var(--bg-main);
}

.sidebar {
    background:
        radial-gradient(120% 60% at 15% 0%, rgba(56, 189, 248, 0.20) 0%, transparent 55%),
        radial-gradient(100% 60% at 85% 100%, rgba(249, 115, 22, 0.18) 0%, transparent 60%),
        linear-gradient(165deg, rgba(11, 31, 74, 0.86) 0%, rgba(7, 20, 50, 0.82) 52%, rgba(4, 13, 34, 0.88) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    color: #F1F5F9;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        10px 0 36px rgba(4, 15, 42, 0.26);
}

#sidebar-nav-list,
.sidebar * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

#sidebar-nav-list::-webkit-scrollbar,
.sidebar *::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

#sidebar-nav-list::-webkit-scrollbar-button,
.sidebar *::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

#sidebar-nav-list::-webkit-scrollbar-track,
.sidebar *::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-nav-list::-webkit-scrollbar-thumb,
.sidebar *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

#sidebar-nav-list::-webkit-scrollbar-thumb:hover,
.sidebar *::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 146, 60, 0.75);
}

/* Official Logo Brand Header inside Sidebar */
.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 12px;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.90) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 1),
        0 8px 22px rgba(2, 8, 23, 0.26);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.brand-logo-card:hover {
    transform: translateY(-1.5px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 1),
        0 12px 26px rgba(242, 116, 32, 0.28);
}

.brand-logo-img {
    width: 100%;
    max-width: 218px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.brand-role-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FDBA74;
}

/* Sidebar Search Box */
.sidebar-search-wrap {
    padding: 0 2px 12px;
}

.sidebar-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s ease;
}

.sidebar-search-box:focus-within {
    border-color: rgba(251, 146, 60, 0.75);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.30),
        0 0 0 3px rgba(249, 115, 22, 0.18);
}

.sidebar-search-input {
    background: transparent;
    border: 0;
    outline: none;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 500;
    width: 100%;
}

.sidebar-search-input::placeholder {
    color: rgba(226, 232, 240, 0.72);
}

/* Sidebar Navigation Links */
.sidebar-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(241, 245, 249, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.12);
    color: #FFFFFF;
    transform: translateX(2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.42) 0%, rgba(234, 88, 12, 0.18) 65%, rgba(255, 255, 255, 0.12) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(253, 186, 116, 0.55);
    font-weight: 800;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.42),
        0 6px 18px rgba(249, 115, 22, 0.24);
}

.nav-link.active i,
.nav-link.active svg {
    color: #FDBA74;
    filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.55));
}

.nav-group-block {
    margin-bottom: 2px;
}

.nav-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(241, 245, 249, 0.88);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-group-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}

.nav-group-btn.active-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(249, 115, 22, 0.15) 100%);
    border-color: rgba(253, 186, 116, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
    color: #FDBA74;
}

.nav-group-label-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.nav-group-label-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-group-count {
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #F8FAFC;
    font-weight: 800;
}

.sidebar-group-items {
    margin: 5px 0 4px 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    flex-direction: column;
    gap: 3px;
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(203, 213, 225, 0.9);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.sidebar-sub-link:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.sidebar-sub-link.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.34) 0%, rgba(255, 255, 255, 0.10) 100%);
    border-color: rgba(253, 186, 116, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
    color: #FFFFFF;
    font-weight: 800;
}

.sidebar-sub-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-sub-link.active .sidebar-sub-dot {
    background: #FB923C;
    box-shadow: 0 0 8px #FB923C;
}

/* Sidebar Account Footer */
.sidebar-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 14px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 11px;
    color: rgba(203, 213, 225, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================================
   MAIN COLUMN & FLOATING LIQUID GLASS TOPBAR
   ========================================================================= */

.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 62px;
    margin: 12px 22px 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(255, 255, 255, 0.52) 50%,
        rgba(255, 247, 237, 0.64) 100%
    );
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 12px;
    z-index: 30;
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--brand-navy);
    letter-spacing: -0.2px;
}

.topbar-subtitle {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.topbar .btn-outline {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.48) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-radius: 11px;
    padding: 7px 13px;
    font-size: 12px;
    transition: all 0.18s ease;
}

.topbar .btn-outline:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.topbar .btn-primary {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(234, 88, 12, 0.90) 100%);
    border: 1px solid rgba(255, 237, 213, 0.65);
    box-shadow:
        0 6px 16px rgba(234, 88, 12, 0.26),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
    border-radius: 11px;
    padding: 7px 14px;
    font-size: 12px;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(17, 49, 119, 0.92) 0%, rgba(11, 34, 85, 0.88) 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 10px rgba(11, 34, 85, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.content {
    padding: 24px 26px 44px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* =========================================================================
   CARDS, TYPOGRAPHY & BUTTONS
   ========================================================================= */

.card {
    background: var(--bg-card);
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(9, 30, 66, 0.05), 0 6px 16px rgba(9, 30, 66, 0.04);
}

.card-pad {
    padding: 20px 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 23px;
    font-weight: 900;
    color: var(--brand-navy);
    letter-spacing: -0.45px;
    margin: 0;
}

.subtle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    cursor: pointer;
    transition: all 0.16s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #F27420 0%, #DF5E0B 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(242, 116, 32, 0.28);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(242, 116, 32, 0.38);
}

.btn-secondary {
    background: linear-gradient(135deg, #0B2C6D 0%, #071D49 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(11, 44, 109, 0.22);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #103A8C 0%, #0B2C6D 100%);
    transform: translateY(-1px);
}

.btn-outline {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: var(--text-main);
    font-weight: 700;
}

.btn-outline:hover:not(:disabled) {
    background: #F8FAFC;
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

.btn-danger {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FECACA;
}

/* =========================================================================
   FORMS, INPUTS & BADGES
   ========================================================================= */

.field {
    width: 100%;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field::placeholder {
    color: #64748B;
    font-weight: 400;
}

.field:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(242, 116, 32, 0.16);
}

.label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-green { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.badge-amber { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-blue { background: #DBEAFE; color: #0B2C6D; border: 1px solid #BFDBFE; }
.badge-purple { background: #EDE9FE; color: #5B21B6; border: 1px solid #DDD6FE; }
.badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.badge-slate { background: #E2E8F0; color: #1E293B; border: 1px solid #CBD5E1; }

/* =========================================================================
   DATA TABLES & UNIVERSAL PAGINATION BAR
   ========================================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-main);
}

table.data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    color: var(--brand-navy);
    background: #EEF4FF;
    padding: 12px 14px;
    border-bottom: 1.5px solid #CBD5E1;
    font-weight: 800;
}

table.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
    color: #1E293B;
    font-weight: 500;
}

table.data-table tr:hover td {
    background: #FFF9F5;
}

tr.ss-page-hidden {
    display: none !important;
}

.ss-auto-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 18px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
    border-radius: 0 0 14px 14px;
}

.ss-auto-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
}

.mobile-menu {
    display: none;
}

@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 272px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-menu {
        display: inline-flex;
    }
}

@keyframes ss-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   ADMIN CONSOLE EXCLUSIVE PREMIUM THEME — OBSIDIAN EMERALD & IMPERIAL GOLD
   Applies ONLY to Admin sessions (body.admin-theme).
   Agent Workspace remains 100% unchanged (Royal Navy Blue & Express Orange).
   ========================================================================= */

body.admin-theme {
    --brand-navy: #064E3B;
    --brand-navy-dark: #04392C;
    --brand-navy-deep: #022C22;
    --brand-navy-light: #0D9488;
    --brand-navy-soft: #ECFDF5;

    --brand-primary: #0D9488;
    --brand-primary-dark: #0F766E;
    --brand-primary-soft: #F0FDFA;
    --brand-primary-border: #99F6E4;

    --brand-indigo: #065F46;

    --bg-main: #F2F6F5;
    --bg-sidebar: #061A17;
    --bg-card: #FFFFFF;

    --text-main: #0F172A;
    --text-body: #1E293B;
    --text-muted: #475569;
    --border-color: #CBD5E1;
    --border-subtle: #D5E3DF;

    background: var(--bg-main);
    color: var(--text-main);
}

body.admin-theme .shell {
    background:
        radial-gradient(circle at 0% 0%, rgba(13, 148, 136, 0.11) 0%, transparent 40%),
        radial-gradient(circle at 20% 90%, rgba(217, 119, 6, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(6, 95, 70, 0.08) 0%, transparent 38%),
        var(--bg-main);
}

/* Admin Sidebar — Deep Obsidian Emerald Glass */
body.admin-theme .sidebar {
    background:
        radial-gradient(120% 60% at 15% 0%, rgba(45, 212, 191, 0.22) 0%, transparent 55%),
        radial-gradient(100% 60% at 85% 100%, rgba(245, 158, 11, 0.16) 0%, transparent 60%),
        linear-gradient(165deg, #07221E 0%, #051815 52%, #030F0E 100%);
    color: #F0FDF9;
    border-right: 1px solid rgba(94, 234, 212, 0.18);
    box-shadow:
        inset -1px 0 0 rgba(94, 234, 212, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        10px 0 36px rgba(2, 20, 17, 0.34);
}

body.admin-theme #sidebar-nav-list::-webkit-scrollbar-thumb:hover,
body.admin-theme .sidebar *::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.72);
}

body.admin-theme .brand {
    border-bottom-color: rgba(94, 234, 212, 0.16);
}

body.admin-theme .brand-role-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(13, 148, 136, 0.18) 100%);
    border: 1px solid rgba(251, 191, 36, 0.42);
    color: #FDE68A;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.admin-theme .sidebar-search-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-color: rgba(94, 234, 212, 0.22);
}

body.admin-theme .sidebar-search-box:focus-within {
    border-color: rgba(45, 212, 191, 0.80);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.24),
        0 0 0 3px rgba(20, 184, 166, 0.22);
}

body.admin-theme .nav-link:hover,
body.admin-theme .nav-group-btn:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(94, 234, 212, 0.24);
    color: #FFFFFF;
}

body.admin-theme .nav-link.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.36) 0%, rgba(13, 148, 136, 0.20) 65%, rgba(255, 255, 255, 0.08) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(94, 234, 212, 0.55);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.34),
        0 6px 18px rgba(13, 148, 136, 0.28);
}

body.admin-theme .nav-link.active i,
body.admin-theme .nav-link.active svg {
    color: #5EEAD4;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.55));
}

body.admin-theme .nav-group-btn.active-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(13, 148, 136, 0.22) 100%);
    border-color: rgba(94, 234, 212, 0.38);
    color: #5EEAD4;
}

body.admin-theme .sidebar-group-items {
    border-left-color: rgba(94, 234, 212, 0.22);
}

body.admin-theme .sidebar-sub-link.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(94, 234, 212, 0.45);
    color: #FFFFFF;
}

body.admin-theme .sidebar-sub-link.active .sidebar-sub-dot {
    background: #2DD4BF;
    box-shadow: 0 0 8px #2DD4BF;
}

body.admin-theme .sidebar-footer {
    border-top-color: rgba(94, 234, 212, 0.16);
}

body.admin-theme .sidebar-account-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-color: rgba(94, 234, 212, 0.20);
}

body.admin-theme .sidebar-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
    border: 1px solid rgba(254, 243, 199, 0.65);
    color: #FFFFFF;
}

/* Admin Topbar — Frosted Pearl Emerald Glass */
body.admin-theme .topbar {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(240, 253, 250, 0.84) 60%,
        rgba(255, 251, 235, 0.78) 100%
    );
    border: 1px solid rgba(153, 246, 228, 0.72);
    box-shadow:
        0 8px 28px rgba(4, 47, 46, 0.07),
        inset 0 1px 1px rgba(255, 255, 255, 0.96),
        inset 0 -2px 0 rgba(13, 148, 136, 0.16);
}

body.admin-theme .topbar-title-row {
    color: #064E3B;
}

body.admin-theme .topbar-title-row .badge-amber {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
    color: #FDE68A;
    border: 1px solid #047857;
    font-weight: 800;
}

body.admin-theme .topbar .btn-outline {
    background: rgba(255, 255, 255, 0.86);
    border-color: #CBE0DA;
    color: #0F172A;
}

body.admin-theme .topbar .btn-outline:hover {
    background: #F0FDFA;
    border-color: #0D9488;
    color: #064E3B;
}

body.admin-theme .topbar .btn-outline svg,
body.admin-theme .topbar .btn-outline i {
    color: #0F766E !important;
}

body.admin-theme .topbar .btn-primary {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    border: 1px solid rgba(153, 246, 228, 0.55);
    box-shadow:
        0 6px 16px rgba(13, 148, 136, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

body.admin-theme .topbar .btn-primary:hover {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
}

body.admin-theme .topbar-avatar {
    background: linear-gradient(135deg, #065F46 0%, #022C22 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.65);
    color: #FEF3C7;
    box-shadow: 0 4px 12px rgba(2, 44, 34, 0.22);
}

/* Admin Cards, Typography, Buttons, Tables & Forms */
body.admin-theme .card {
    background: #FFFFFF;
    border: 1px solid #D3E2DD;
    box-shadow: 0 1px 3px rgba(4, 47, 46, 0.05), 0 8px 20px rgba(4, 47, 46, 0.04);
}

body.admin-theme .page-title {
    color: #064E3B;
}

body.admin-theme .btn-primary {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}

body.admin-theme .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.38);
}

body.admin-theme .btn-secondary {
    background: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(6, 78, 59, 0.24);
}

body.admin-theme .btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
}

body.admin-theme .btn-outline:hover:not(:disabled) {
    background: #F0FDFA;
    border-color: #0D9488;
    color: #064E3B;
}

body.admin-theme .field:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

body.admin-theme input[type="checkbox"],
body.admin-theme input[type="radio"],
body.admin-theme input[type="range"] {
    accent-color: #0F766E;
}

body.admin-theme table.data-table th {
    color: #064E3B;
    background: #E8F5F1;
    border-bottom: 1.5px solid #B7DDD3;
}

body.admin-theme table.data-table tr:hover td {
    background: #F4FBF9;
}

body.admin-theme .ss-auto-pagination {
    background: #F4FAF8;
    border-top-color: #D3E2DD;
}

body.admin-theme #admin-new-user-banner-wrap .card {
    background: #F0FDFA !important;
    border-color: #99F6E4 !important;
}

body.admin-theme footer {
    border-top-color: #D3E2DD !important;
    background: #FFFFFF !important;
}

body.admin-theme footer a {
    color: #065F46 !important;
}
