/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
    --page: #eef4ff;
    --surface: rgba(255,255,255,.94);
    --surface-strong: #ffffff;
    --line: rgba(30,41,59,.10);
    --accent: #90c253;
    --accent-2: #90c253;
    --cyan: #bce18f;
    --text: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
}

/* =============================================
   BASE
   ============================================= */
* { letter-spacing: -.01em; box-sizing: border-box; }

body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.18), transparent 28%),
        radial-gradient(circle at 90% 5%, rgba(124,58,237,.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--page) 100%);
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #1d4ed8; }

svg { max-width: 100%; max-height: 100%; }

/* =============================================
   APP SHELL
   ============================================= */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =============================================
   SIDEBAR PANEL
   ============================================= */
.sidebar-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 230px;
    min-width: 230px;
    background: #ffffff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: width .28s ease, min-width .28s ease;
    overflow: hidden;
    z-index: 200;
    flex-shrink: 0;
    box-shadow: 2px 0 20px rgba(30,41,59,.06);
}

/* Logo */
.sidebar-logo {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sidebar-brand-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    transition: opacity .2s ease, width .28s ease;
}

/* Nav scroll area */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* Section labels */
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    padding: 10px 10px 3px;
    white-space: nowrap;
    transition: opacity .2s ease;
    margin-top: 4px;
    display: block;
}
.nav-section-label:first-child { margin-top: 0; }

/* Sidebar links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}
.sidebar-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color .15s ease;
}
.sidebar-link span {
    transition: opacity .2s ease;
    overflow: hidden;
    white-space: nowrap;
}
.sidebar-link:hover {
    background: rgba(37,99,235,.07);
    color: var(--accent);
    transform: translateX(2px);
}
.sidebar-link.active {
    background: rgba(37,99,235,.10);
    color: var(--accent);
    border: 1px solid rgba(37,99,235,.18);
}
.sidebar-link.active i { color: var(--accent); }
.sidebar-logout { color: #dc2626 !important; }
.sidebar-logout:hover { background: rgba(220,38,38,.07) !important; color: #dc2626 !important; transform: none !important; }

/* Footer */
.sidebar-footer {
    padding: 10px 8px 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.sidebar-footer form { width: 100%; margin: 0; }

/* Collapse toggle button */
.sidebar-collapse-btn {
    position: absolute;
    right: -13px;
    top: 72px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 300;
    box-shadow: 0 2px 8px rgba(30,41,59,.10);
    transition: background .15s ease;
    margin-right: 10px;
}
.sidebar-collapse-btn i {
    font-size: 13px;
    color: var(--muted);
    transition: transform .28s ease;
}
.sidebar-collapse-btn:hover { background: #f1f5f9; }

/* =============================================
   SIDEBAR — COLLAPSED STATE
   ============================================= */
.sidebar-panel.collapsed {
    width: 62px;
    min-width: 62px;
}
.sidebar-panel.collapsed .sidebar-brand-text,
.sidebar-panel.collapsed .sidebar-link span,
.sidebar-panel.collapsed .nav-section-label {
    opacity: 0;
    width: 0;
    pointer-events: none;
}
.sidebar-panel.collapsed .sidebar-link {
    justify-content: center;
    padding: 9px;
    gap: 0;
}
.sidebar-panel.collapsed .sidebar-link i { width: auto; }
.sidebar-panel.collapsed .sidebar-logo { padding: 18px 13px 14px; }
.sidebar-panel.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }



/* =============================================
   NEW: DROPDOWN / SUBMENU
   ============================================= */
.nav-dropdown { display: flex; flex-direction: column; }
 
.nav-dropdown-trigger {
    /* reuses .sidebar-link but adds a chevron on the right */
    justify-content: space-between;
}
.nav-dropdown-trigger .link-left { display: flex; align-items: center; gap: 10px; }
.nav-dropdown-chevron {
    font-size: 11px !important;
    width: auto !important;
    color: var(--muted);
    transition: transform .22s ease;
}
.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); color: var(--accent); }
 
.nav-dropdown-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s ease;
}
.nav-dropdown.open .nav-dropdown-panel { grid-template-rows: 1fr; }
.nav-dropdown-panel-inner { overflow: hidden; }
 
.nav-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 4px 0;
    margin-left: 20px;
    border-left: 1px solid var(--line);
}
.nav-dropdown-link {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px 7px 14px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #64748b;
    text-decoration: none; position: relative;
    transition: background .15s ease, color .15s ease;
}
.nav-dropdown-link::before {
    content: '';
    position: absolute; left: -1px; top: 50%;
    width: 8px; height: 1px;
    background: var(--line);
}
.nav-dropdown-link:hover { background: rgba(37,99,235,.07); color: var(--accent); }
.nav-dropdown-link.active { background: rgba(37,99,235,.10); color: var(--accent); font-weight: 700; }
 


/* =============================================
   MAIN WRAPPER
   ============================================= */
.main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.main-topbar {
    height: 56px;
    padding: 0 20px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(30,41,59,.05);
}
.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.topbar-hamburger:hover { background: rgba(37,99,235,.07); color: var(--accent); }
.topbar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(37,99,235,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 1.5rem 1.75rem;
    max-width: 1440px;
    width: 100%;
}

/* Mobile backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 199;
    backdrop-filter: blur(2px);
}
.sidebar-backdrop.show { display: block; }

/* =============================================
   PUBLIC NAV (guests only)
   ============================================= */
.nav-shell {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(30,41,59,.07);
}
.navbar-brand { color: #0f172a; }
.nav-link { color: #475569; font-weight: 600; }
.nav-link:hover { color: var(--accent); }

/* =============================================
   BUTTONS
   ============================================= */
.btn { font-weight: 700; }
.btn-gradient {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--cyan));
    box-shadow: 0 14px 30px rgba(37,99,235,.24);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37,99,235,.28);
}

/* =============================================
   UTILITY
   ============================================= */
.text-muted { color: var(--muted) !important; }
.text-info { color: #0891b2 !important; }
.border-secondary { border-color: var(--line) !important; }
.badge-soft { background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.16); color: #1d4ed8; }

/* =============================================
   GLASS CARD
   ============================================= */
.glass {
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.90));
    border: 1px solid var(--line);
    box-shadow: 0 18px 55px rgba(30,41,59,.08);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    color: var(--text);
}
.alert.glass { color: var(--text); border-color: rgba(30,41,59,.10); }
.alert.glass strong, .alert.glass li { color: var(--text); }
.alert.glass.alert-info    { background: linear-gradient(145deg, rgba(14,165,233,.14),  rgba(255,255,255,.94)); }
.alert.glass.alert-success { background: linear-gradient(145deg, rgba(34,197,94,.14),   rgba(255,255,255,.94)); }
.alert.glass.alert-warning { background: linear-gradient(145deg, rgba(245,158,11,.16),  rgba(255,255,255,.94)); }
.alert.glass.alert-danger  { background: linear-gradient(145deg, rgba(239,68,68,.16),   rgba(255,255,255,.94)); }

/* =============================================
   HERO
   ============================================= */
.hero-title {
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    line-height: .96;
    color: var(--text);
    font-weight: 900;
}

/* =============================================
   PAGE HEADING
   ============================================= */
.page-heading { gap: 1rem; padding: .25rem 0; }
.page-heading h1 { font-weight: 850; }

/* =============================================
   STAT CARDS
   ============================================= */
.stat-card { position: relative; overflow: hidden; min-height: 132px; }
.stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.09), transparent 55%);
    pointer-events: none;
}
.stat-card::after {
    content: '';
    position: absolute; inset: auto -30px -40px auto;
    width: 124px; height: 124px; border-radius: 50%;
    background: rgba(6,182,212,.14);
}
.stat-card .display-6 { position: relative; z-index: 1; color: #0f172a; }

/* =============================================
   TABLES
   ============================================= */
.table-responsive { border-radius: 18px; border: 1px solid rgba(30,41,59,.08); background: #fff; }
.table { margin-bottom: 0; color: var(--text); }
.table th { color: #475569; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: #f8fafc; }
.table td { color: var(--text); vertical-align: middle; }
.table td, .table th { padding: .9rem 1rem; }
.table-hover tbody tr:hover { background: rgba(37,99,235,.055); }
.table code { color: #1d4ed8; font-weight: 700; }

/* =============================================
   FORMS
   ============================================= */
.form-control, .form-select { background-color: #fff; border-color: rgba(30,41,59,.16); color: var(--text); border-radius: 12px; }
.form-select option, .form-select optgroup { background-color: #fff; color: var(--text); }
.form-select option:checked { background: #dbeafe; color: var(--text); }
.form-control:focus, .form-select:focus { background-color: #fff; color: var(--text); border-color: #38bdf8; box-shadow: 0 0 0 .25rem rgba(14,165,233,.15); }
.form-control::placeholder { color: #94a3b8; }

/* =============================================
   ADMIN SHELL (legacy grid kept for sub-pages)
   ============================================= */
.admin-shell { display: grid; gap: 1.5rem; }
.admin-menu-card { position: sticky; top: 82px; z-index: 20; }
.admin-menu-head { gap: 1rem; }
.admin-menu {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}
.admin-menu-link {
    display: flex; flex-direction: column; gap: .12rem;
    min-height: 70px; padding: .9rem 1rem;
    border: 1px solid rgba(30,41,59,.10); border-radius: 18px;
    background: rgba(248,250,252,.86); color: #334155;
    transition: .2s ease;
}
.admin-menu-link span { font-weight: 800; color: #0f172a; }
.admin-menu-link small { color: var(--muted); font-weight: 650; }
.admin-menu-link:hover, .admin-menu-link.active {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.26);
    background: linear-gradient(145deg, rgba(37,99,235,.11), rgba(255,255,255,.96));
    box-shadow: 0 12px 26px rgba(37,99,235,.11);
}
.admin-menu.collapse:not(.show) { display: none; }
.admin-menu.collapse.show { display: grid; }

/* =============================================
   ACTIVITY LIST
   ============================================= */
.activity-list { display: grid; gap: .75rem; }
.activity-item {
    position: relative;
    padding: .9rem 1rem .9rem 2.6rem;
    border: 1px solid rgba(30,41,59,.08); border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    box-shadow: 0 8px 22px rgba(30,41,59,.045);
}
.activity-item::before {
    content: '';
    position: absolute; left: .95rem; top: 1.08rem;
    width: .74rem; height: .74rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.activity-item strong { display: block; color: #0f172a; margin-bottom: .15rem; }
.activity-meta { color: var(--muted); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    padding: 1rem; color: var(--muted); text-align: center;
    border: 1px dashed rgba(30,41,59,.16); border-radius: 16px;
    background: rgba(248,250,252,.72);
}

/* =============================================
   ADMIN CONTENT OVERFLOW GUARD
   ============================================= */
.admin-content, [role="main"] { min-width: 0; max-width: 100%; }

/* =============================================
   PAGINATION + SVG ICONS
   ============================================= */
nav[role="navigation"] { width: 100%; }
nav[role="navigation"] svg { width: 16px !important; height: 16px !important; display: inline-block; vertical-align: middle; }
nav[role="navigation"] .flex { display: flex; }
nav[role="navigation"] .items-center { align-items: center; }
nav[role="navigation"] .justify-between { justify-content: space-between; }
nav[role="navigation"] .inline-flex { display: inline-flex; }
nav[role="navigation"] .relative { position: relative; }
nav[role="navigation"] a, nav[role="navigation"] span { line-height: 1.2; }
nav[role="navigation"] .flex.justify-between { margin-top: 12px; }

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Large desktop */
@media (max-width: 1200px) {
    .admin-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet / small desktop — switch sidebar to slide-over */
@media (max-width: 991px) {
    .sidebar-panel {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .28s ease;
        width: 230px !important;
        min-width: 230px !important;
        box-shadow: 4px 0 24px rgba(15,23,42,.14);
    }
    .sidebar-panel.mobile-open {
        transform: translateX(0);
    }
    /* Always show text on mobile regardless of desktop collapsed state */
    .sidebar-panel .sidebar-brand-text,
    .sidebar-panel .sidebar-link span,
    .sidebar-panel .nav-section-label {
        opacity: 1 !important;
        width: auto !important;
        pointer-events: auto !important;
    }
    .sidebar-panel .sidebar-link {
        justify-content: flex-start !important;
        padding: 9px 10px !important;
        gap: 10px !important;
    }
    .sidebar-panel .sidebar-link i { width: 20px !important; }
    .sidebar-panel .sidebar-logo { padding: 18px 16px 14px !important; }
    .sidebar-collapse-btn { display: none; }

    .topbar-hamburger { display: flex !important; }

    .admin-menu-card { position: static; }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-content { padding: 1rem; }
}

/* Mobile */
@media (max-width: 767px) {
    body { background-size: auto; }
    .glass { border-radius: 18px; box-shadow: 0 12px 34px rgba(30,41,59,.08); }
    .glass.p-4 { padding: 1rem !important; }
    .glass.p-3 { padding: .85rem !important; }
    .hero-title { font-size: clamp(2.05rem, 12vw, 3.1rem); }
    .display-6 { font-size: 1.8rem; }
    .page-heading { align-items: stretch !important; }
    .page-heading > * { width: 100%; }
    .page-heading .btn { width: 100%; }
    .stat-card { min-height: 112px; }
    .stat-card::after { width: 88px; height: 88px; }
    .table { min-width: 720px; font-size: .92rem; }
    .table td, .table th { padding: .72rem .75rem; }
    .activity-item { padding: .82rem .85rem .82rem 2.25rem; border-radius: 14px; }
    .activity-item::before { left: .8rem; }
    .modal-dialog { margin: 1rem; }
}

@media (max-width: 640px) {
    nav[role="navigation"] .flex.justify-between { margin-top: 10px; }
}

@media (max-width: 575px) {
    .main-content { padding: .75rem; }
}

@media (max-width: 520px) {
    .admin-menu { grid-template-columns: 1fr; }
    .admin-menu-link { min-height: auto; padding: .82rem .9rem; }
}

@media (max-width: 420px) {
    .main-content { padding: .6rem; }
    .btn, .form-control, .form-select { min-height: 44px; }
}


    .pw {
        --ink: #16233A;
        --slate: #5B6472;
        --line: #E5E8ED;
        --accent: #FF8A3D;
        --paper: #FFFFFF;
        --canvas: #F5F6F8;
        font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
        color: var(--ink);
    }

    .pw-topbar {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 1.75rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .pw-eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--slate);
        margin-bottom: 0.25rem;
    }
    .pw-tracking {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        font-size: 1.9rem;
        letter-spacing: 0.02em;
        margin: 0;
    }
    .pw-status-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 100px;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: capitalize;
    }
    .pw-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

    .pw-grid {
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 1.75rem;
        align-items: start;
    }
    @media (max-width: 900px) {
        .pw-grid { grid-template-columns: 1fr; }
    }

    /* SHIPPING LABEL */
    .pw-label {
        position: relative;
        background: var(--paper);
        border: 1.5px solid var(--ink);
        border-radius: 14px;
        padding: 1.75rem 1.75rem 1.5rem;
        overflow: hidden;
    }
    .pw-label-notch {
        position: absolute;
        top: 50%;
        width: 22px;
        height: 22px;
        background: var(--canvas);
        border: 1.5px solid var(--ink);
        border-radius: 50%;
        transform: translateY(-50%);
    }
    .pw-label-notch-l { left: -12px; }
    .pw-label-notch-r { right: -12px; }

    .pw-label-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        color: var(--slate);
        margin-bottom: 0.6rem;
    }
    .pw-label-head-tag {
        background: var(--ink);
        color: #fff;
        padding: 0.2rem 0.55rem;
        border-radius: 5px;
        letter-spacing: 0.06em;
    }
    .pw-recipient-name {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0 0 0.85rem;
    }
    .pw-label-row {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.92rem;
        color: var(--ink);
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    .pw-label-row svg { flex-shrink: 0; margin-top: 2px; color: var(--slate); }

    .pw-perforation {
        border-top: 2px dashed var(--line);
        margin: 1.25rem 0;
    }

    .pw-stats {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    .pw-stat { flex: 1; }
    .pw-stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--slate);
        font-weight: 700;
        margin-bottom: 0.3rem;
    }
    .pw-stat-value {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.25rem;
        font-weight: 700;
    }
    .pw-stat-value--accent { color: var(--accent); }
    .pw-stat-divider {
        width: 1px;
        align-self: stretch;
        background: var(--line);
        margin: 0 1.25rem;
    }

    .pw-barcode-block {
        background: var(--canvas);
        border-radius: 10px;
        padding: 1rem 1.1rem;
        text-align: center;
    }
    .pw-barcode-bars {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 1.5px;
        height: 42px;
        margin-bottom: 0.6rem;
    }
    .pw-barcode-bars span {
        display: block;
        height: 100%;
        background: var(--ink);
        border-radius: 1px;
    }
    .pw-barcode-code {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        color: var(--slate);
    }

    /* TIMELINE CARD */
    .pw-timeline-card {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 1.75rem;
    }
    .pw-timeline-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    .pw-timeline-head h3 {
        font-size: 1.05rem;
        font-weight: 800;
        margin: 0;
    }
    .pw-count {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--slate);
        background: var(--canvas);
        padding: 0.3rem 0.7rem;
        border-radius: 100px;
    }

    .pw-timeline { position: relative; }
    .pw-tl-item {
        display: flex;
        gap: 1rem;
    }
    .pw-tl-rail {
        position: relative;
        width: 12px;
        display: flex;
        justify-content: center;
    }
    .pw-tl-rail::before {
        content: '';
        position: absolute;
        top: 6px;
        bottom: -1.5rem;
        width: 2px;
        background: var(--line);
    }
    .pw-tl-item:last-child .pw-tl-rail::before { display: none; }
    .pw-tl-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-top: 4px;
        box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line);
        z-index: 1;
    }
    .pw-tl-content {
        flex: 1;
        padding-bottom: 1.5rem;
    }
    .pw-tl-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }
    .pw-tl-status {
        font-size: 0.78rem;
        font-weight: 800;
        padding: 0.3rem 0.7rem;
        border-radius: 100px;
        text-transform: capitalize;
    }
    .pw-tl-time {
        font-size: 0.8rem;
        color: var(--slate);
        font-weight: 500;
    }
    .pw-tl-note {
        font-size: 0.92rem;
        color: var(--ink);
        margin: 0.2rem 0 0.4rem;
        line-height: 1.5;
    }
    .pw-tl-meta {
        display: flex;
        gap: 1rem;
        font-size: 0.8rem;
        color: var(--slate);
    }

    .pw-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: var(--slate);
    }



.resource-panel {
    background: #f8fafc;
    border-radius: 18px;
    padding: 22px;
}

.resource-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9edf2;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(47, 179, 68, .09);
    color: #2fb344;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.resource-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 10px;
    text-align: center;
    border: 1px solid #edf0f3;
}

.resource-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.progress-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 9;
}

.progress-ring-bg {
    stroke: #e9edf2;
}

.progress-ring-value {
    stroke: #377daf;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset .5s ease;
}

.memory-ring {
    stroke: #90c253;
}

.progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 700;
}

.resource-title {
    font-size: 13px;
    font-weight: 600;
}

.resource-subtitle {
    color: #667085;
    font-size: 11px;
    margin-top: 3px;
}


/* =========================================================
   Device
========================================================= */

.device-panel {
    border: 1px solid #edf0f3;
    border-radius: 18px;
    padding: 24px;
    background: #fff;
}

.device-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.device-icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 125, 175, .10);
    color: #377daf;
    font-size: 30px;
    flex-shrink: 0;
}

.device-name {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    word-break: break-word;
}

.device-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.device-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 19px;
}

.detail-icon.cpu {
    background: rgba(55, 125, 175, .10);
    color: #377daf;
}

.detail-icon.memory {
    background: rgba(144, 194, 83, .12);
    color: #78a83e;
}

.detail-icon.uptime {
    background: rgba(111, 66, 193, .10);
    color: #6f42c1;
}

.detail-icon.status {
    background: rgba(47, 179, 68, .10);
    color: #2fb344;
}

.detail-content {
    min-width: 0;
}

.detail-label {
    color: #667085;
    font-size: 11px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.device-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}

.live-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #2fb344;
    margin-right: 4px;
    box-shadow: 0 0 0 3px rgba(47, 179, 68, .12);
}


@media (max-width: 575.98px) {

    .resource-panel,
    .device-panel {
        padding: 16px;
    }

    .resource-circle,
    .progress-ring {
        width: 100px;
        height: 100px;
    }

    .progress-value {
        font-size: 21px;
    }

    .device-name {
        font-size: 14px;
    }

    .device-details {
        grid-template-columns: 1fr;
    }

}
    .status-dot {
        width: 7px;
        height: 7px;
        display: inline-block;
        border-radius: 50%;
        background: currentColor;
        margin-right: 5px;
    }

    
    .device-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(55, 125, 175, .10);
        color: #377daf;
        font-size: 20px;
        flex-shrink: 0;
    }

    .resource-box {
        text-align: center;
    }

    .resource-circle {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto 10px;
    }

    .progress-ring {
        width: 120px;
        height: 120px;
        transform: rotate(-90deg);
    }

    .progress-ring circle {
        fill: none;
        stroke-width: 9;
    }

    .progress-ring-bg {
        stroke: #edf0f3;
    }

    .progress-ring-value {
        stroke: #377daf;
        stroke-linecap: round;
        stroke-dasharray: 314;
        stroke-dashoffset: 314;
        transition: stroke-dashoffset .5s ease;
    }

    .progress-value {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
        font-weight: 700;
    }

    .resource-title {
        color: #667085;
        font-size: 13px;
        font-weight: 600;
    }

    .uptime-box {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 22px;
        border-radius: 18px;
        background: #f8fafc;
    }

    .uptime-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(55, 125, 175, .10);
        color: #377daf;
        font-size: 27px;
        flex-shrink: 0;
    }

    .live-dot {
        width: 7px;
        height: 7px;
        display: inline-block;
        border-radius: 50%;
        background: #2fb344;
        margin-right: 4px;
        box-shadow: 0 0 0 3px rgba(47, 179, 68, .12);
    }

    .service-card {
        background: #fff;
        border: 1px solid #edf0f3;
        border-radius: 20px;
        box-shadow: 0 5px 24px rgba(30, 41, 59, .06);
        padding: 24px;
    }

    .service-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding-bottom: 22px;
        border-bottom: 1px solid #edf0f3;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
        flex-shrink: 0;
    }

    .hotspot-icon {
        background: rgba(55, 125, 175, .10);
        color: #377daf;
    }

    .pppoe-icon {
        background: rgba(144, 194, 83, .13);
        color: #78a83e;
    }

    .service-live-badge {
        background: rgba(47, 179, 68, .09);
        color: #2fb344;
        padding: 6px 11px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .service-stats {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
        padding-top: 22px;
    }

    .service-stat {
        min-width: 0;
        text-align: center;
        padding: 15px 8px;
        border-radius: 15px;
        background: #f8fafc;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        margin: 0 auto 8px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .stat-icon.total {
        background: rgba(55, 125, 175, .10);
        color: #377daf;
    }

    .stat-icon.active {
        background: rgba(47, 179, 68, .10);
        color: #2fb344;
    }

    .stat-icon.inactive {
        background: rgba(245, 159, 0, .10);
        color: #f59f00;
    }

    .stat-icon.online {
        background: rgba(32, 107, 196, .10);
        color: #206bc4;
    }

    .stat-icon.offline {
        background: rgba(108, 117, 125, .10);
        color: #6c757d;
    }

    .stat-label {
        color: #667085;
        font-size: 11px;
        white-space: nowrap;
    }

    .stat-number {
        margin-top: 3px;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 600;
    }

    @media (max-width: 991.98px) {

        .service-stats {
            grid-template-columns: repeat(3, 1fr);
        }

    }

    @media (max-width: 575.98px) {

        .service-card {
            padding: 17px;
        }

        .service-stats {
            grid-template-columns: repeat(2, 1fr);
        }

        .service-header {
            align-items: flex-start;
        }

        .uptime-box {
            padding: 17px;
        }

        .resource-circle {
            width: 105px;
            height: 105px;
        }

        .progress-ring {
            width: 105px;
            height: 105px;
        }

        .resource-value {
            font-size: 21px;
        }

    }

/* =========================================================
   Router Page Header
========================================================= */

.router-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .025);
}


/* =========================================================
   Main
========================================================= */

.router-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}


/* =========================================================
   Back Button
========================================================= */

.router-back-btn {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #e7ebef;
    border-radius: 12px;

    background: #f8fafc;
    color: #667085;

    text-decoration: none;

    font-size: 18px;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.router-back-btn:hover {
    background: #f1f5f9;
    color: #377daf;
    border-color: #dbe4ec;
    transform: translateX(-1px);
}


/* =========================================================
   Router Icon
========================================================= */

.router-header-icon {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(55, 125, 175, .10);
    color: #377daf;

    font-size: 24px;
}


/* =========================================================
   Information
========================================================= */

.router-header-info {
    min-width: 0;
}

.router-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.router-title {
    margin: 0;

    font-size: 21px;
    line-height: 1.25;

    font-weight: 700;

    color: #182230;

    max-width: 100%;

    overflow-wrap: anywhere;
}


/* =========================================================
   Status
========================================================= */

.router-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border-radius: 50px;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.status-connecting {
    background: #f1f3f5;
    color: #667085;
}

.status-connected {
    background: rgba(47, 179, 68, .10);
    color: #2fb344;
}

.status-disconnected {
    background: rgba(214, 57, 57, .10);
    color: #d63939;
}

.status-dot {
    width: 6px;
    height: 6px;

    display: inline-block;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;
}


/* =========================================================
   Meta
========================================================= */

.router-meta {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 5px;

    color: #667085;

    font-size: 12px;
}

.router-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-width: 0;
}

.router-meta-item i {
    font-size: 14px;
}

.router-meta-item span {
    overflow-wrap: anywhere;
}

.router-meta-separator {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #cbd5e1;
}


/* =========================================================
   Refresh
========================================================= */

.router-header-actions {
    flex-shrink: 0;
}

.router-refresh-btn {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 15px;

    border: 1px solid #dce5ec;
    border-radius: 11px;

    background: #fff;
    color: #377daf;

    font-size: 13px;
    font-weight: 600;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.router-refresh-btn:hover {
    background: #f8fafc;
    border-color: #cbd8e2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.router-refresh-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.router-refresh-btn i {
    font-size: 17px;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {

    .router-page-header {
        align-items: flex-start;
        padding: 15px;
    }

    .router-header-main {
        gap: 10px;
    }

    .router-header-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 21px;
    }

    .router-back-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .router-title {
        font-size: 18px;
    }

    .router-meta {
        flex-wrap: wrap;
    }

    .router-meta-separator {
        display: none;
    }

    .router-header-actions {
        align-self: center;
    }

    .router-refresh-btn {
        width: 40px;
        padding: 0;
    }

    .router-refresh-btn span {
        display: none;
    }
}



.router-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.router-list-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.router-list-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #182230;
}

.router-list-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(55, 125, 175, .10);
    color: #377daf;

    font-size: 24px;
}


/* =========================================================
   Alert
========================================================= */

.router-alert-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 10px;

    border-radius: 10px;

    background: rgba(47, 179, 68, .12);
    color: #2fb344;
}


/* =========================================================
   Router Card
========================================================= */

.router-card {
    background: #fff;

    border: 1px solid #edf0f3;
    border-radius: 18px;

    padding: 20px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, .035);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.router-card:hover {
    transform: translateY(-2px);

    border-color: #dce6ed;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .07);
}


/* =========================================================
   Card Header
========================================================= */

.router-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 17px;

    border-bottom: 1px solid #f0f2f4;
}

.router-card-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: rgba(55, 125, 175, .10);
    color: #377daf;

    font-size: 22px;
}

.router-card-name {
    font-size: 16px;
    font-weight: 700;

    color: #182230;

    overflow-wrap: anywhere;
}

.router-card-host {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #667085;

    font-size: 11px;
}

.router-card-host i {
    font-size: 13px;
}


/* =========================================================
   Status
========================================================= */

.router-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;
}

.router-status-active {
    background: rgba(47, 179, 68, .10);
    color: #2fb344;
}

.router-status-disabled {
    background: #f1f3f5;
    color: #667085;
}

.router-status-dot {
    width: 6px;
    height: 6px;

    display: inline-block;

    border-radius: 50%;

    background: currentColor;
}


/* =========================================================
   Information
========================================================= */

.router-info-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 16px;
}

.router-info-item {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;

    padding: 11px;

    background: #f8fafc;

    border-radius: 12px;
}

.router-info-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: #fff;

    color: #377daf;

    font-size: 15px;
}

.router-info-content {
    min-width: 0;
}

.router-info-label {
    color: #98a2b3;

    font-size: 10px;

    margin-bottom: 2px;
}

.router-info-value {
    color: #344054;

    font-size: 12px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   Features
========================================================= */

.router-features {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 14px;
}

.router-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 9px;

    border-radius: 50px;

    background: #f1f5f9;

    color: #475467;

    font-size: 10px;
    font-weight: 600;
}

.router-feature i {
    font-size: 13px;
}

.router-feature-success {
    background: rgba(47, 179, 68, .08);
    color: #2fb344;
}

.router-feature-muted {
    color: #667085;
}


/* =========================================================
   Actions
========================================================= */

.router-card-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #f0f2f4;
}

.router-card-actions form {
    display: flex;
}

.router-card-actions .btn {
    min-height: 34px;
}


/* =========================================================
   Empty
========================================================= */

.router-empty {
    text-align: center;

    padding: 70px 20px;

    background: #fff;

    border: 1px solid #edf0f3;

    border-radius: 18px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, .035);
}

.router-empty-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 20px;

    background: rgba(55, 125, 175, .10);
    color: #377daf;

    font-size: 34px;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {

    .router-list-header {
        align-items: flex-start;
    }

    .router-list-title h2 {
        font-size: 20px;
    }

    .router-list-title .text-secondary {
        font-size: 11px;
    }

    .router-list-icon {
        width: 42px;
        height: 42px;

        border-radius: 12px;

        font-size: 21px;
    }

    .router-list-header > .btn {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

}

@media (max-width: 575.98px) {

    .router-list-header {
        flex-direction: column;
    }

    .router-list-header > .btn {
        width: 100%;
    }

    .router-info-list {
        grid-template-columns: 1fr;
    }

}



.hotspot-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hotspot-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.hotspot-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.hotspot-back-btn:hover {
    color: #377daf;
}

.hotspot-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #377daf;
    color: #fff;
    font-size: 23px;
    flex-shrink: 0;
}

.hotspot-header-info {
    min-width: 0;
}

.hotspot-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.hotspot-router-name {
    margin-top: 3px;
    color: #6c757d;
    font-size: .875rem;
}

.hotspot-router-name i {
    margin-right: 4px;
}

.hotspot-stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    box-shadow: 0 5px 22px rgba(0,0,0,.045);
}

.hotspot-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55,125,175,.10);
    color: #377daf;
    font-size: 22px;
    flex-shrink: 0;
}

.hotspot-online-icon {
    color: #90c253;
    background: rgba(144,194,83,.12);
}

.hotspot-offline-icon {
    color: #6c757d;
    background: rgba(108,117,125,.10);
}

.hotspot-disabled-icon {
    color: #dc3545;
    background: rgba(220,53,69,.10);
}

.hotspot-stat-label {
    color: #6c757d;
    font-size: .78rem;
    margin-bottom: 2px;
}

.hotspot-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.hotspot-users-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0,0,0,.045);
}

.hotspot-toolbar {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hotspot-search {
    position: relative;
    width: min(100%, 420px);
}

.hotspot-search > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b95a1;
    z-index: 2;
}

.hotspot-search .form-control {
    padding-left: 40px;
    border-radius: 12px;
    min-height: 42px;
    border: 1px solid #e8ebee;
}

.hotspot-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.hotspot-filter {
    border: 0;
    background: #f4f6f8;
    color: #6c757d;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.hotspot-filter.active {
    background: #377daf;
    color: #fff;
}

.hotspot-filter-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

.hotspot-filter-dot.online {
    background: #90c253;
}

.hotspot-filter-dot.offline {
    background: #adb5bd;
}

.hotspot-users-table {
    min-width: 900px;
}

.hotspot-users-table thead th {
    background: #f8f9fa;
    color: #6c757d;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 14px 18px;
    white-space: nowrap;
}

.hotspot-users-table tbody td {
    padding: 15px 18px;
    vertical-align: middle;
    color: #495057;
}

.hotspot-user-name {
    font-weight: 600;
    color: #212529;
}

.hotspot-user-meta {
    color: #8b95a1;
    font-size: .75rem;
    margin-top: 2px;
}

.hotspot-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.hotspot-status.online {
    color: #5e8b2a;
    background: rgba(144,194,83,.13);
}

.hotspot-status.offline {
    color: #6c757d;
    background: #f1f3f5;
}

.hotspot-status.disabled {
    color: #c0392b;
    background: rgba(220,53,69,.10);
}

.hotspot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.hotspot-status.online .hotspot-status-dot {
    background: #90c253;
}

.hotspot-status.offline .hotspot-status-dot {
    background: #adb5bd;
}

.hotspot-status.disabled .hotspot-status-dot {
    background: #dc3545;
}

.hotspot-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6c757d;
}

.hotspot-empty {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

.hotspot-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hotspot-empty h5 {
    color: #343a40;
    margin-bottom: 5px;
}

.hotspot-empty p {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {

    .hotspot-page-header {
        align-items: flex-start;
    }

    .hotspot-title {
        font-size: 1.2rem;
    }

    .hotspot-header-icon {
        width: 42px;
        height: 42px;
    }

    .hotspot-back-btn {
        width: 38px;
        height: 38px;
    }

    .hotspot-page-header > .btn {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .hotspot-page-header > .btn span {
        display: none;
    }

}
.hotspot-password-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.hotspot-password {
    font-family: monospace;
    font-size: .82rem;
    letter-spacing: .04em;
}

.hotspot-password-toggle {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #f4f6f8;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hotspot-password-toggle:hover {
    background: #377daf;
    color: #fff;
}

/* Hotspot Voucher Pagination */
.hotspot-voucher-pagination {
    width: 100%;
}

.hotspot-voucher-pagination nav {
    width: 100%;
}

.hotspot-voucher-pagination nav > div {
    width: 100%;
}

.hotspot-voucher-pagination nav > div > div:last-child {
    display: flex;
    justify-content: flex-end;
}

.hotspot-voucher-pagination nav span.relative,
.hotspot-voucher-pagination nav a.relative {
    position: static !important;
}

.hotspot-voucher-pagination nav .inline-flex {
    display: inline-flex !important;
}

.hotspot-voucher-pagination nav a,
.hotspot-voucher-pagination nav span[aria-disabled] > span,
.hotspot-voucher-pagination nav span[aria-current] > span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;

    font-size: 13px !important;
    font-weight: 500;

    color: var(--bs-secondary-color, #6c757d) !important;
    background: var(--bs-body-bg, #fff) !important;

    border: 1px solid var(--bs-border-color, #dee2e6) !important;

    text-decoration: none !important;
    line-height: 1;
    transition: all .15s ease-in-out;
}

.hotspot-voucher-pagination nav a:hover {
    color: var(--bs-primary, #0d6efd) !important;
    background: var(--bs-tertiary-bg, #f8f9fa) !important;
    border-color: var(--bs-primary, #0d6efd) !important;
}

.hotspot-voucher-pagination nav span[aria-current] > span {
    color: #fff !important;
    background: var(--bs-primary, #0d6efd) !important;
    border-color: var(--bs-primary, #0d6efd) !important;
    z-index: 2;
}

.hotspot-voucher-pagination nav span[aria-disabled] > span {
    color: var(--bs-secondary-color, #6c757d) !important;
    background: var(--bs-secondary-bg, #e9ecef) !important;
    cursor: default;
}

.hotspot-voucher-pagination nav svg {
    width: 18px !important;
    height: 18px !important;
}

.hotspot-voucher-pagination nav a:first-child,
.hotspot-voucher-pagination nav span[aria-disabled]:first-child span {
    border-radius: .375rem 0 0 .375rem;
}

.hotspot-voucher-pagination nav a:last-child,
.hotspot-voucher-pagination nav span:last-child a {
    border-radius: 0 .375rem .375rem 0;
}

.hotspot-voucher-pagination nav .shadow-sm {
    box-shadow: none !important;
}

/* Remove Tailwind spacing that conflicts with Bootstrap */
.hotspot-voucher-pagination .-ml-px {
    margin-left: -1px !important;
}

.hotspot-voucher-pagination .ml-3 {
    margin-left: .5rem !important;
}

/* Mobile */
@media (max-width: 767.98px) {

    .hotspot-voucher-pagination {
        width: 100%;
    }

    .hotspot-voucher-pagination > div {
        width: 100%;
    }

    .hotspot-voucher-pagination nav {
        width: 100%;
    }

    .hotspot-voucher-pagination nav > div {
        width: 100%;
    }

    .hotspot-voucher-pagination nav > div > div:last-child {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hotspot-voucher-pagination nav .inline-flex {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .hotspot-voucher-pagination nav a,
    .hotspot-voucher-pagination nav span[aria-disabled] > span,
    .hotspot-voucher-pagination nav span[aria-current] > span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px !important;
        flex-shrink: 0;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {

    .hotspot-voucher-pagination {
        margin-top: 4px;
    }

    .hotspot-voucher-pagination nav > div > div:first-child {
        width: 100%;
        margin-bottom: 8px;
    }

    .hotspot-voucher-pagination nav > div > div:last-child {
        justify-content: flex-start;
    }
}


    #synchronization-page {
        --sync-primary: #4f46e5;
        --sync-primary-dark: #4338ca;
        --sync-radius: 1rem;
    }

    #synchronization-page .page-hero {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
        border-radius: var(--sync-radius);
        padding: 1.75rem 2rem;
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px -12px rgba(79, 70, 229, .45);
    }

    #synchronization-page .page-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 55%);
        pointer-events: none;
    }

    #synchronization-page .hero-icon {
        width: 52px;
        height: 52px;
        border-radius: .9rem;
        background: rgba(255,255,255,.15);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #synchronization-page .btn-back-hero {
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.35);
        color: #fff;
        backdrop-filter: blur(4px);
        transition: all .2s ease;
    }

    #synchronization-page .btn-back-hero:hover {
        background: rgba(255,255,255,.25);
        color: #fff;
    }

    #synchronization-page .surface-card {
        border: none;
        border-radius: var(--sync-radius);
        box-shadow: 0 2px 14px rgba(20, 20, 43, .06);
        transition: box-shadow .25s ease, transform .25s ease;
    }

    #synchronization-page .surface-card:hover {
        box-shadow: 0 10px 26px rgba(20, 20, 43, .09);
    }

    #synchronization-page .router-avatar {
        width: 48px;
        height: 48px;
        border-radius: .85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #eef2ff, #e0e7ff);
        color: var(--sync-primary);
    }

    #synchronization-page .progress {
        border-radius: 50rem;
        overflow: hidden;
    }

    #synchronization-page .progress-bar {
        background: linear-gradient(90deg, #4f46e5, #a855f7);
    }

    #synchronization-page .sync-item-card {
        border: none;
        border-radius: var(--sync-radius);
        box-shadow: 0 2px 14px rgba(20, 20, 43, .06);
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        position: relative;
        overflow: hidden;
    }

    #synchronization-page .sync-item-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: var(--item-accent, #94a3b8);
        opacity: .9;
    }

    #synchronization-page .sync-item-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(20, 20, 43, .1);
    }

    #synchronization-page .sync-item-card.is-syncing {
        box-shadow: 0 0 0 2px var(--item-accent, #4f46e5), 0 14px 30px rgba(20, 20, 43, .1);
    }

    #synchronization-page .sync-item-card.is-done .item-icon {
        background: #dcfce7 !important;
        color: #16a34a !important;
    }

    #synchronization-page .item-icon {
        width: 46px;
        height: 46px;
        border-radius: .85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .3s ease, color .3s ease;
    }

    #synchronization-page .item-count {
        font-variant-numeric: tabular-nums;
    }

    #synchronization-page .status-pill {
        font-weight: 600;
        letter-spacing: .01em;
        padding: .3rem .65rem;
        border-radius: 50rem;
    }

    #synchronization-page .cta-card {
        border: none;
        border-radius: var(--sync-radius);
        background: linear-gradient(135deg, #0f172a, #1e293b);
        color: #fff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .25);
    }

    #synchronization-page .cta-card .text-muted {
        color: rgba(255,255,255,.65) !important;
    }

    #synchronization-page #startSyncBtn {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        border: none;
        font-weight: 600;
        padding: .7rem 1.6rem;
        border-radius: .75rem;
        box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    #synchronization-page #startSyncBtn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(79, 70, 229, .5);
    }

    #synchronization-page #startSyncBtn:disabled {
        opacity: .7;
    }

    #synchronization-page .spin {
        animation: sync-spin 1s linear infinite;
    }

    @keyframes sync-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
