/* MintMart Admin Portal Styles */
:root {
    --admin-primary: #10B981;
    --admin-primary-dark: #059669;
    --admin-sidebar-bg: #0F172A;
    --admin-sidebar-hover: #1E293B;
    --admin-bg: #F8FAFC;
    --admin-card-border: #E2E8F0;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--admin-bg);
}

/* Sidebar Active Link Indicator */
.sidebar-link {
    transition: all 0.2s ease;
    border-radius: 8px;
    color: #94A3B8;
}

.sidebar-link:hover {
    background-color: var(--admin-sidebar-hover);
    color: #F8FAFC;
}

.sidebar-link.active {
    background-color: #10B981;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Stat KPI Cards */
.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #FFFFFF;
    border: 1px solid var(--admin-card-border);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Status Badges */
.badge-pending {
    background-color: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.badge-confirmed {
    background-color: #E0E7FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
}

.badge-shipping {
    background-color: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.badge-completed {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge-cancelled {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #10B981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* ========================================================
   MOBILE RESPONSIVE ADMIN STYLES
   ======================================================== */

/* Sidebar drawer on mobile */
@media (max-width: 767px) {
    #adminSidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    #adminSidebar.open {
        transform: translateX(0);
    }

    #adminSidebarBackdrop {
        position: fixed;
        inset: 0;
        background-color: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(3px);
        z-index: 45;
        transition: opacity 0.3s ease;
    }

    /* Modal adjustments for mobile */
    .mobile-modal-sheet {
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        max-height: 92vh !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* Padding for bottom nav on mobile */
    #adminMainLayout {
        padding-bottom: 76px;
    }
}

/* Mobile Product Card */
.admin-product-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.admin-product-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

/* Fixed Bottom Navigation Bar for Mobile */
.admin-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 40;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 0 8px;
}

.admin-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    transition: color 0.15s;
    position: relative;
}

.admin-mobile-nav-item.active {
    color: #10B981;
}

.admin-mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

/* Mobile Quick Add Floating Button */
.admin-mobile-fab {
    position: fixed;
    bottom: 80px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
    z-index: 40;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.admin-mobile-fab:active {
    transform: scale(0.92);
}
