/* =========================================
   CLOTHSY ADMIN - RESPONSIVE MASTER CSS
   Works flawlessly on Mobile, Tablet & Desktop!
   ========================================= */
   
   :root {
    --bg-color: #f8fafc;
    --sidebar-bg: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #3b82f6;
}

body { 
    background-color: var(--bg-color); 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: var(--text-main); 
    margin: 0; padding: 0; overflow-x: hidden;
}

/* =========================================
   1. UNIVERSAL COMPONENTS
   ========================================= */
.card-common { 
    background: #fff; border-radius: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border: 1px solid #e2e8f0; padding: 20px; 
}
.table-container { 
    background: #fff; border-radius: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border: 1px solid #e2e8f0; overflow: hidden; 
}
.badge-status { 
    padding: 6px 12px; border-radius: 50px; 
    font-size: 0.75rem; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 0.5px; 
    white-space: nowrap; display: inline-block;
}
.page-title { 
    font-weight: 800; margin: 0; 
    color: var(--text-main); letter-spacing: -0.5px; 
}
.order-link { color: #0f172a; text-decoration: none; transition: 0.2s; }
.order-link:hover { color: #0088cc; text-decoration: underline; }

/* =========================================
   2. MOBILE-FIRST LAYOUT (DEFAULT)
   ========================================= */
.mobile-header { 
    background: #fff; padding: 15px 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 1040; 
}
.mobile-header .brand { font-weight: 800; font-size: 1.2rem; color: var(--sidebar-bg); letter-spacing: -0.5px; }
.menu-btn { background: none; border: none; font-size: 1.5rem; color: var(--sidebar-bg); padding: 0; }

/* Offcanvas Sidebar for Mobile */
.offcanvas { background-color: var(--sidebar-bg) !important; color: #f8fafc; width: 260px !important; border: none; }
.offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px; }
.nav-link { color: #94a3b8; font-weight: 600; padding: 12px 20px; border-radius: 12px; margin: 5px 15px; display: flex; align-items: center; gap: 12px; transition: 0.2s; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: rgba(59, 130, 246, 0.1); color: #38bdf8; }
.nav-link i { font-size: 1.2rem; }

/* Main Content Area */
.main-content { 
    display: block; padding: 15px; 
    margin-left: 0 !important; width: 100%; 
    max-width: 100vw; box-sizing: border-box; 
}

.row { margin-left: 0; margin-right: 0; }
.row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }

/* =========================================
   3. DESKTOP LAYOUT OVERRIDES (The Magic)
   ========================================= */
@media (min-width: 992px) {
    /* Hide the mobile hamburger header */
    .mobile-header { display: none !important; }
    
    /* Pin Sidebar permanently to the Left */
    .desktop-sidebar.offcanvas {
        transform: none !important;
        visibility: visible !important;
        position: fixed !important;
        top: 0; left: 0; height: 100vh; width: 260px !important;
        display: flex !important; flex-direction: column;
        z-index: 1000;
    }
    
    /* Hide Modal Dark Backdrop on Desktop */
    .offcanvas-backdrop { display: none !important; }

    /* Push Main Content 260px to the Right */
    .main-content { 
        margin-left: 260px !important; 
        padding: 40px !important; 
        width: calc(100% - 260px) !important; 
    }

    /* Restore Standard Desktop Grid Spacing */
    .row { margin-left: -12px; margin-right: -12px; }
    .row > [class*="col-"] { padding-left: 12px; padding-right: 12px; }
}