/* --- Admin Core & Layout --- */
:root {
    --admin-bg: #f0f4f8;
    --sidebar-bg: #0f172a;
    --accent-blue: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-muted: #94a3b8;
    --glass-white: rgba(255, 255, 255, 0.8);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

/* Premium Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    right: 0;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-header {
    padding: 40px 25px;
    position: relative;
}

/* Desktop-only: collapse toggle in topbar (same icon as mobile menu) */
.sidebar-collapse-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover {
    background: #f1f5f9;
    border-color: rgba(56, 189, 248, 0.3);
}
.sidebar-collapse-btn .hamburger-line {
    width: 20px;
    height: 2.5px;
    background: #475569;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.sidebar-collapse-btn:hover .hamburger-line {
    background: var(--accent-blue);
}

@media (min-width: 1025px) {
    .sidebar-collapse-btn {
        display: flex;
    }
    .admin-sidebar.sidebar-collapsed {
        width: 90px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .admin-sidebar.sidebar-collapsed .sidebar-header {
        padding: 20px 12px;
    }
    .admin-sidebar.sidebar-collapsed .sidebar-logo-full {
        display: none;
    }
    .admin-sidebar.sidebar-collapsed .sidebar-logo-favicon {
        display: block;
        width: 32px;
        height: 32px;
    }
    .admin-sidebar.sidebar-collapsed .nav-label,
    .admin-sidebar.sidebar-collapsed .nav-text,
    .admin-sidebar.sidebar-collapsed .btn-exit-portal span:not(.exit-icon) {
        display: none;
    }
    .admin-sidebar.sidebar-collapsed .nav-item-inner {
        justify-content: center;
        padding: 18px 0;
        margin: 0 10px;
    }
    .admin-sidebar.sidebar-collapsed .nav-icon {
        margin: 0;
        font-size: 1.5rem;
    }
    .admin-sidebar.sidebar-collapsed .admin-logo {
        justify-content: center;
    }
    .admin-sidebar.sidebar-collapsed + .admin-main {
        margin-right: 90px;
        transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sidebar-logo-full {
    height: 100px;
    width: auto;
    display: block;
}

.sidebar-logo-favicon {
    display: none;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(56, 189, 248, 0.3);
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.logo-text .sub-name {
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 500;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 15px;
    overflow-y: auto;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 25px 15px 10px;
}

.nav-item {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    position: relative;
}

.nav-item-inner {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 15px;
}

.nav-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.nav-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.nav-item:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.02) 100%);
    color: white;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--accent-blue);
    border-radius: 0 4px 4px 0;
    box-shadow: -4px 0 15px var(--accent-glow);
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #f87171;
    border-radius: 50%;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.sidebar-footer {
    padding: 30px 20px;
}

.btn-exit-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 113, 113, 0.1);
}

.btn-exit-portal:hover {
    background: #f87171;
    color: white;
    transform: translateY(-2px);
}

/* Main Content Topbar */
.admin-main {
    flex: 1;
    margin-right: 280px;
    display: flex;
    flex-direction: column;
}

.admin-topbar-glass {
    height: 85px;
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.search-glass-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-glass-icon {
    position: absolute;
    right: 18px;
    color: #64748b;
    font-size: 0.9rem;
}

.search-glass-group input {
    border: 1px solid #e2e8f0;
    padding: 12px 45px 12px 20px;
    border-radius: 14px;
    width: 320px;
    background: #f8fafc;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-glass-group input:focus {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    width: 400px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.topbar-util-btns {
    display: flex;
    gap: 10px;
}

.util-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.util-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: #dc2626;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notifications-dropdown {
    min-width: 320px;
    max-width: 380px;
    padding: 0;
}

.admin-notifications-dropdown .dropdown-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.admin-notifications-dropdown .notification-item {
    white-space: normal;
    max-width: 100%;
}

.admin-notifications-dropdown .notification-item .text-truncate {
    max-width: 280px;
}

.admin-profile-fancy {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-profile-fancy:hover {
    background: #e2e8f0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: var(--sidebar-bg);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.p-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}

.p-status {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.admin-page-content {
    padding: 40px;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Dashboard Styles */
.text-dark-blue {
    color: #0f172a;
}

.header-date-badge {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
}

/* Luxury Stat Cards */
.luxury-stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.luxury-stat-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.stat-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.l-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.l-value {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
}

.l-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.glass-blue .l-icon-box {
    background: rgba(56, 189, 248, 0.1);
}

.glass-green .l-icon-box {
    background: rgba(34, 197, 94, 0.1);
}

.glass-orange .l-icon-box {
    background: rgba(245, 158, 11, 0.1);
}

.glass-purple .l-icon-box {
    background: rgba(168, 85, 247, 0.1);
}

.stat-footer .trend {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
}

.trend.up {
    color: #10b981;
}

.trend.alert {
    color: #f87171;
}

/* Luxury Panels */
.luxury-panel {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.panel-header {
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-body {
    padding: 30px;
}

.btn-panel-action {
    background: #f1f5f9;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0ea5e9;
    transition: all 0.3s ease;
}

.btn-panel-action:hover {
    background: #0ea5e9;
    color: white;
}

/* Luxury Tables */
.luxury-table thead th,
.luxury-admin-table thead th {
    background: #f8fafc;
    padding: 14px 20px;
    color: #475569;
    font-weight: 800;
    font-size: 0.82rem;
    border: none;
}

.luxury-table tbody td,
.luxury-admin-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.p-icon-circle,
.p-mini-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    font-size: 1.1rem;
}

.p-name {
    font-weight: 700;
    color: #1e293b;
}

.badge-soft,
.cat-tag {
    background: #eff6ff;
    color: #3b82f6;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-indicator,
.status-chip {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator::before,
.status-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.active,
.status-chip.active {
    color: #10b981;
}

.status-indicator.active::before,
.status-chip.active::before {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-indicator.inactive,
.status-chip.inactive {
    color: #94a3b8;
}

.status-indicator.inactive::before,
.status-chip.inactive::before {
    background: #94a3b8;
}

/* Quick Buttons */
.quick-btns-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.q-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 18px;
    text-align: right;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #475569;
}

.q-btn .q-icon {
    font-size: 1.5rem;
}

.q-btn:hover {
    background: white;
    border-color: #38bdf8;
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    color: #0f172a;
}

/* Products Specific */
.btn-premium-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
    color: white;
}

.panel-header-search {
    padding: 25px 30px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
}

.search-box-inline {
    position: relative;
}

.search-box-inline .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box-inline input {
    width: 100%;
    border: 1px solid #e2e8f0;
    padding: 10px 45px 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.f-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.f-pill.active {
    background: #0f172a;
    color: white;
}

.action-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* --- Mobile Menu Toggle Button --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

.hamburger-line {
    width: 20px;
    height: 2.5px;
    background: #475569;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Sidebar Overlay --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* --- Tablet Responsiveness (1024px) --- */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 90px;
    }

    .logo-text,
    .nav-label,
    .nav-text,
    .profile-details,
    .notification-dot,
    .btn-exit-portal span:not(.exit-icon) {
        display: none;
    }

    .admin-main {
        margin-right: 90px;
    }

    .nav-item-inner {
        justify-content: center;
        padding: 18px 0;
        margin: 0 10px;
    }

    .nav-icon {
        margin: 0;
        font-size: 1.5rem;
    }

    .admin-logo {
        justify-content: center;
    }

    .search-glass-group input {
        width: 220px;
    }

    .search-glass-group input:focus {
        width: 280px;
    }

    .admin-page-content {
        padding: 25px;
    }

    .admin-topbar-glass {
        padding: 0 20px;
    }
}

/* --- Mobile Responsiveness (768px and below) --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
        /* Ensure clickable */
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: all;
    }

    .admin-sidebar {
        width: 280px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    /* Show all sidebar text on mobile when open */
    .logo-text,
    .nav-label,
    .nav-text,
    .notification-dot,
    .btn-exit-portal span:not(.exit-icon) {
        display: unset;
    }

    .nav-item-inner {
        justify-content: flex-start;
        padding: 14px 18px;
        margin: 0;
    }

    .nav-icon {
        font-size: 1.25rem;
    }

    .admin-logo {
        justify-content: center;
    }

    .admin-main {
        margin-right: 0;
    }

    .admin-topbar-glass {
        height: 65px;
        padding: 0 15px;
        gap: 10px;
        z-index: 1001;
        /* Ensure topbar is above content */
    }

    .topbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    /* Adjust search on mobile */
    .search-glass-group {
        flex: 1;
        min-width: 0;
    }

    .search-glass-group input {
        width: 100%;
        padding: 8px 35px 8px 10px;
        font-size: 0.8rem;
        height: 38px;
    }

    .search-glass-group input:focus {
        width: 100%;
    }

    .search-glass-icon {
        font-size: 0.8rem;
        right: 12px;
    }

    /* Utilities & Profile on Mobile - Make them visible but compact */
    .topbar-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .topbar-util-btns {
        display: flex;
        /* Show buttons */
        gap: 5px;
    }

    .util-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Hide full name on mobile to save space, show avatar */
    .profile-details {
        display: none;
    }

    .admin-profile-fancy {
        padding: 4px;
        border-radius: 12px;
        background: transparent;
    }

    .admin-profile-fancy:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .admin-page-content {
        padding: 15px;
    }

    .page-container {
        max-width: 100%;
    }

    /* Dashboard header stack on mobile */
    .dashboard-luxury-header .d-flex {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .dashboard-luxury-header h2 {
        font-size: 1.3rem;
    }

    .header-date-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }

    /* Stat cards: 2 per row on mobile */
    .row.g-4 .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .luxury-stat-card {
        padding: 18px;
        border-radius: 16px;
    }

    .l-value {
        font-size: 1.4rem;
    }

    .l-icon-box {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    /* Page header stack */
    .luxury-page-header .d-flex {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .luxury-page-header h2 {
        font-size: 1.2rem;
    }

    .btn-premium-primary {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
    }

    /* Panel adjustments */
    .panel-header {
        padding: 18px;
    }

    .panel-body {
        padding: 18px;
    }

    .panel-header-search {
        padding: 15px;
    }

    .panel-header-search .row {
        gap: 10px;
    }

    .panel-header-search .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Table adjustments */
    .luxury-table thead th,
    .luxury-admin-table thead th {
        padding: 10px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .luxury-table tbody td,
    .luxury-admin-table tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .p-icon-circle,
    .p-mini-icon {
        width: 30px;
        height: 30px;
        margin-left: 8px;
        font-size: 0.9rem;
    }

    /* Pagination responsive */
    .luxury-pagination {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 6px;
        justify-content: center;
    }

    .pg-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 8px;
        font-size: 0.8rem;
    }

    .pg-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Quick buttons */
    .q-btn {
        padding: 14px;
        font-size: 0.9rem;
    }

    /* Luxury panels full width */
    .row.g-4 .col-lg-8,
    .row.g-4 .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Action buttons */
    .action-flex {
        gap: 6px;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* --- Very Small Screens (480px and below) --- */
@media (max-width: 480px) {
    .admin-page-content {
        padding: 10px;
    }

    /* Stat cards: 1 per row on very small */
    .row.g-4 .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dashboard-luxury-header h2 {
        font-size: 1.1rem;
    }

    .luxury-panel {
        border-radius: 16px;
    }

    .luxury-stat-card {
        padding: 15px;
    }

    .l-value {
        font-size: 1.2rem;
    }

    .l-label {
        font-size: 0.8rem;
    }

    .admin-topbar-glass {
        height: 58px;
        padding: 0 10px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .hamburger-line {
        width: 16px;
        height: 2px;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
}

/* Luxury Pagination */
.luxury-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.pg-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: auto;
    font-weight: 500;
}

.pg-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 600;
}

.pg-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.pg-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.pg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.pg-dots {
    color: #94a3b8;
    padding: 0 5px;
}

/* --- Login Page --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-logo {
    height: 60px;
    width: auto;
}