// WiseSale admin shell (RTL-friendly) — match guest/login
html,
body,
#app,
.auth-page {
    font-family: $font-family-sans-serif;
}

// —— App shell: fixed sidebar (right), main content ——
.admin-app {
    min-height: 100vh;
    background: #f1f5f9;
}

// Route transition loading (top bar, non-blocking)
.admin-route-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    pointer-events: none;
}

.admin-route-progress {
    height: 3px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #6366f1,
        #a78bfa,
        #c4b5fd,
        #a78bfa,
        #6366f1
    );
    background-size: 200% 100%;
    animation: admin-route-shimmer 0.9s linear infinite;
}

@keyframes admin-route-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.admin-mobile-bar {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1045;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1050;
    width: min(288px, 92vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 55%, #172554 100%);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.35);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.admin-sidebar__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f8fafc;
    line-height: 1.2;
}

.admin-sidebar__muted {
    color: rgba(248, 250, 252, 0.55);
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    color: rgba(248, 250, 252, 0.78);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar__link--active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(139, 92, 246, 0.2)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-sidebar__icon {
    display: flex;
    opacity: 0.9;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
    min-height: 100vh;
    margin-right: 288px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-sidebar--open {
        transform: translateX(0);
    }

    .admin-main {
        margin-right: 0;
    }
}

.admin-shell {
    min-height: 100%;
    padding-bottom: 2rem;
}

.admin-page-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e1b4b;
}

.admin-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.admin-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.admin-table-wrap {
    border-radius: 0.5rem;
    overflow: auto;
    max-width: 100%;
}

.admin-table-wrap table {
    font-size: 0.875rem;
}

.admin-stat-card {
    border-radius: 0.75rem;
    border: none;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.admin-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.92;
}

.admin-stat-indigo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.admin-stat-emerald {
    background: linear-gradient(135deg, #059669, #10b981);
}
.admin-stat-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}
.admin-stat-rose {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
}
.admin-stat-sky {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}
.admin-stat-slate {
    background: linear-gradient(135deg, #475569, #64748b);
}

.pagination .page-link {
    border-radius: 0.375rem;
}
