/* ==========================================================================
   MOBILESHOP PRO - CLEAN RETAIL ADMIN DASHBOARD STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #f5f7fb;
    --bg-card: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.1);
    --neon-cyan: #0f766e;
    --neon-blue: #2563eb;
    --neon-violet: #4f46e5;
    --neon-mint: #10b981;
    --neon-gold: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image:
        linear-gradient(180deg, #f8fafc 0%, #eef6f5 100%),
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 40%);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--glass-border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 40px;
}

.sidebar-nav ul li {
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.12);
}

.admin-content {
    flex-grow: 1;
    padding: 30px 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
}

.kpi-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.kpi-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--neon-mint);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sales SVG Chart Container */
.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Data Tables */
.admin-table-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13.5px;
    color: var(--text-muted);
}

.admin-table th {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
}

.status-badge.delivered { background: rgba(0, 223, 162, 0.15); color: var(--neon-mint); border: 1px solid var(--neon-mint); }
.status-badge.processing { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.status-badge.pending { background: rgba(255, 183, 3, 0.15); color: var(--neon-gold); border: 1px solid var(--neon-gold); }

/* Current admin markup theme */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--glass-border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.06);
}

.sidebar-brand,
.brand-text,
.sidebar-footer {
    display: flex;
}

.sidebar-brand {
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand-logo,
.kpi-icon,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #ffffff;
    font-size: 20px;
}

.brand-text {
    flex-direction: column;
    gap: 4px;
}

.brand-text h2,
.top-header h1,
.panel-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.brand-text h2 {
    font-size: 19px;
    font-weight: 900;
}

.portal-badge,
.section-label,
.pill-badge,
.nav-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.portal-badge {
    color: var(--neon-cyan);
}

.nav-section {
    margin-bottom: 24px;
}

.section-label {
    display: block;
    margin: 0 0 8px 12px;
    color: var(--text-muted);
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.sidebar-nav li:hover,
.sidebar-nav li.active {
    color: var(--neon-cyan);
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.1);
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--neon-blue);
}

.alert-badge {
    background: rgba(249, 115, 22, 0.14);
    color: #ea580c;
}

.sidebar-footer {
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.status-indicator {
    color: var(--neon-cyan);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--neon-mint);
}

.main-content {
    flex: 1;
    padding: 28px 36px;
}

.top-header,
.header-right,
.header-search,
.panel-header,
.kpi-card {
    display: flex;
    align-items: center;
}

.top-header {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.top-header h1 {
    font-size: 30px;
    font-weight: 900;
}

.header-search {
    width: min(420px, 100%);
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
}

.header-right {
    gap: 10px;
}

.btn,
.icon-btn {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn {
    padding: 10px 14px;
}

.btn-sm {
    padding: 7px 10px;
    font-size: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
}

.btn:hover,
.icon-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.content-body {
    display: block;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
}

.panel-card,
.breakdown-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.panel-header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 900;
}

.kpi-card {
    gap: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #ffffff;
    flex: 0 0 auto;
}

.purple-bg { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.blue-bg { background: linear-gradient(135deg, #2563eb, #0f766e); }
.green-bg { background: linear-gradient(135deg, #10b981, #0f766e); }
.orange-bg { background: linear-gradient(135deg, #f97316, #f59e0b); }

.kpi-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pill-badge {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
}

.success-pill { background: rgba(16, 185, 129, 0.12); color: #059669; }
.warning-pill { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.info-pill { background: rgba(37, 99, 235, 0.12); color: #2563eb; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    text-align: left;
}

.data-table th {
    color: var(--text-main);
    font-weight: 900;
}

.margin-top-20 {
    margin-top: 20px;
}

.status-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.breakdown-label,
.breakdown-pct {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.breakdown-value {
    display: block;
    margin: 8px 0;
    color: var(--text-main);
    font-size: 26px;
    font-family: var(--font-heading);
}

.progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
}

.yellow-fill { background: #f59e0b; }
.blue-fill { background: #2563eb; }
.green-fill { background: #10b981; }
.red-fill { background: #ef4444; }

@media (max-width: 980px) {
    .admin-wrapper,
    .dashboard-row,
    .top-header {
        display: block;
    }

    .sidebar {
        width: auto;
    }

    .main-content {
        padding: 24px 18px;
    }

    .header-search,
    .header-right {
        margin-top: 14px;
    }
}
