/* ==========================================================
   BDShoping - Modern Professional Admin CSS
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2dd4bf;
    --primary-hover: #14b8a6;
    --primary-light: #e6fbf3;
    --primary-border: #99f6e4;
    --secondary: #df0209;
    --secondary-hover: #ba0005;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --sidebar-bg: #ffffff;
    --sidebar-active: #2dd4bf;
    --light-bg: #f6f8fb;
    --card-bg: #ffffff;
    --white: #ffffff;
    --border: #edf2f7;
    --border-hover: #cbd5e1;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --info: #3b82f6;
    --info-bg: #eff6ff;
    --info-text: #1e40af;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --purple: #8b5cf6;
    --purple-bg: #f5f3ff;
    --purple-text: #6d28d9;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   Admin Layout
   --------------------------------------------------------- */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--dark);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #edf2f7;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
    z-index: 50;
}
.sidebar-header {
    padding: 22px 20px 18px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.sidebar-header .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
}
.sidebar-header img {
    max-width: 165px;
    height: auto;
    display: block;
}
.sidebar-header .brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    display: block;
    line-height: 1.2;
}
.sidebar-header span.tag {
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    display: block;
    margin-top: 4px;
}
.sidebar-menu {
    list-style: none;
    padding: 16px 14px;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.sidebar-menu a:hover {
    color: #0f172a;
    background-color: #f8fafc;
}
.sidebar-menu li.active a {
    color: #0f172a;
    background-color: #2dd4bf;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}
.sidebar-menu a i.nav-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s;
}
.sidebar-menu a:hover i.nav-icon {
    color: #0f172a;
}
.sidebar-menu li.active a i.nav-icon {
    color: #0f172a;
}
.sidebar-menu .nav-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #0f172a;
    opacity: 0.8;
}
.sidebar-divider {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #94a3b8;
    padding: 14px 16px 4px;
    margin-top: 4px;
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--text-subtle);
    background: #ffffff;
}
.sidebar-footer a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: color 0.2s;
}
.sidebar-footer a:hover {
    color: #ef4444;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
    background-color: #f6f8fb;
}
.main-header {
    background-color: transparent;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.header-overview-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}
.header-search-wrap {
    position: relative;
    width: 380px;
    max-width: 100%;
}
.header-search-wrap input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 10px 42px 10px 18px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-wrap input:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.header-search-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-date-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.header-icon-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.header-icon-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.header-icon-btn .badge-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: 9px;
    right: 9px;
}
.header-user-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 138, 69, 0.25);
}

.content-body {
    padding: 28px 32px;
    flex-grow: 1;
}
.page-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------------------------------------------------------
   KPI / Dashboard Stat Cards
   --------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card:nth-child(1) .stat-icon { background-color: #ecfdf5; color: var(--success); }
.stat-card:nth-child(2) .stat-icon { background-color: #eff6ff; color: var(--info); }
.stat-card:nth-child(3) .stat-icon { background-color: #fffbeb; color: var(--warning); }
.stat-card:nth-child(4) .stat-icon { background-color: #f5f3ff; color: var(--purple); }

/* ---------------------------------------------------------
   Cards & Panels
   --------------------------------------------------------- */
.card-panel {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}
.card-body {
    padding: 24px;
}

.form-section-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.form-section-header {
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-header i {
    color: var(--primary);
}

/* ---------------------------------------------------------
   Admin Tables
   --------------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.admin-table th {
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1.5px solid var(--border);
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover {
    background-color: #f8fafc;
}
.table-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: cover;
    background-color: #f1f5f9;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0, 138, 69, 0.2);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 138, 69, 0.3);
}
.btn-secondary {
    background-color: #475569;
    color: var(--white);
}
.btn-secondary:hover {
    background-color: #334155;
}
.btn-light {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.btn-light:hover {
    background-color: #e2e8f0;
}
.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background-color: #dc2626;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* ---------------------------------------------------------
   Badges
   --------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-success { background-color: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
.badge-warning { background-color: var(--warning-bg); color: var(--warning-text); border: 1px solid #fde68a; }
.badge-danger { background-color: var(--danger-bg); color: var(--danger-text); border: 1px solid #fecaca; }
.badge-info { background-color: var(--info-bg); color: var(--info-text); border: 1px solid #bfdbfe; }

/* Status Badges for Orders */
.badge-pending { background-color: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-processing { background-color: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-shipped { background-color: #ede9fe; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-completed { background-color: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.badge-cancelled { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* ---------------------------------------------------------
   Form Controls
   --------------------------------------------------------- */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 138, 69, 0.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ---------------------------------------------------------
   VARIATION & SWATCHES MANAGER
   --------------------------------------------------------- */
.variation-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.variation-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.variation-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.variation-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.variation-toolbar {
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.variation-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.variation-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}
.variation-table th {
    background: #f8fafc;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.variation-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13px;
}
.variation-table tr:last-child td {
    border-bottom: none;
}
.variation-table tr:hover {
    background: #fcfdfd;
}

/* Swatch Preview Element */
.var-color-preview {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    border: 2px solid #cbd5e1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    flex-shrink: 0;
}

/* CRITICAL: Constrain Variation Image Previews */
.var-img-preview {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background-color: #f8fafc !important;
    flex-shrink: 0;
}

.var-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}
.var-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 138, 69, 0.12);
}

.var-color-picker {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    background: transparent !important;
    flex-shrink: 0;
}

.stock-badge-live {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

/* ---------------------------------------------------------
   Alerts & Notifications
   --------------------------------------------------------- */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}
.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #a7f3d0;
}
.alert-info {
    background-color: var(--info-bg);
    color: var(--info-text);
    border: 1px solid #bfdbfe;
}

/* ---------------------------------------------------------
   Login Page Styles
   --------------------------------------------------------- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0f172a;
    background-image: radial-gradient(at 0% 0%, rgba(0, 138, 69, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
}
.login-box {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary);
}
.login-logo {
    text-align: center;
    margin-bottom: 25px;
}
.login-logo h1 {
    margin: 0;
    color: var(--primary);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.login-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--dark);
}

/* ---------------------------------------------------------
   Responsive Breakpoints
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .content-body {
        padding: 20px;
    }
    .pixel-metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .pixel-row-2col {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .pixel-metric-grid {
        grid-template-columns: 1fr !important;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .main-header {
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .header-search-wrap {
        width: 100%;
    }
    .pixel-analytic-stats {
        flex-wrap: wrap;
        gap: 16px !important;
    }
}

/* =========================================================
   Pixel Commerce Dashboard Template Styles
   ========================================================= */
.pixel-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.pixel-metric-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 142px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}
.pixel-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.pixel-metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.pixel-metric-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}
.pixel-metric-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}
.pixel-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.pixel-metric-icon.revenue { background: #e6fbf3; color: #10b981; }
.pixel-metric-icon.orders { background: #e0f2fe; color: #0284c7; }
.pixel-metric-icon.customers { background: #f0fdf4; color: #16a34a; }
.pixel-metric-icon.pending { background: #fff7ed; color: #ea580c; }

.pixel-metric-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
}
.pixel-metric-val {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
}
.pixel-metric-trend {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.pixel-metric-trend.up { color: #10b981; }
.pixel-metric-trend.down { color: #ef4444; }

/* 2-Column Responsive Layout */
.pixel-row-2col {
    display: grid;
    grid-template-columns: 1.85fr 1.15fr;
    gap: 20px;
    margin-bottom: 24px;
}
.pixel-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}
.pixel-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.pixel-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.pixel-sort-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Sales Analytic Metrics Bar */
.pixel-analytic-stats {
    display: flex;
    gap: 36px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8fafc;
}
.pixel-analytic-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pixel-analytic-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}
.pixel-analytic-val-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pixel-analytic-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.pixel-badge-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.pixel-badge-blue { background: #eff6ff; color: #2563eb; }
.pixel-badge-orange { background: #fff7ed; color: #ea580c; }
.pixel-badge-green { background: #ecfdf5; color: #16a34a; }

/* Concentric Radial Gauge */
.sales-target-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
}
.sales-target-legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f8fafc;
}
.sales-target-legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}
.sales-target-legend-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.target-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.target-bullet.daily { background: #94a3b8; }
.target-bullet.monthly { background: #2dd4bf; }
.sales-target-val {
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

/* Top Selling Products */
.pixel-nav-arrows {
    display: flex;
    gap: 6px;
}
.pixel-arrow-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pixel-arrow-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.top-prods-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}
@media (max-width: 1200px) {
    .top-prods-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}
.top-prod-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.top-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.top-prod-thumb-box {
    width: 100%;
    height: 120px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}
.top-prod-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.top-prod-card:hover .top-prod-thumb-box img {
    transform: scale(1.05);
}
.top-prod-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-prod-pcs {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Current Offers */
.pixel-offers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pixel-offer-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pixel-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pixel-offer-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.pixel-offer-expiry {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}
.pixel-offer-bar {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}
.pixel-offer-fill {
    height: 100%;
    border-radius: 20px;
}
.pixel-offer-fill.dark {
    background: #94a3b8;
}
.pixel-offer-fill.mint {
    background: #2dd4bf;
}

