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

:root {
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #5521C6;
    --secondary: #00D4AA;
    --secondary-light: #34E8C4;
    --accent: #FF6B6B;
    --accent-warn: #FFB347;
    --bg-dark: #0A0E1A;
    --bg-card: #111827;
    --bg-card-2: #1A2236;
    --bg-sidebar: #0D1221;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(255,255,255,0.06);
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.08);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A0E1A 0%, #1a1040 50%, #0A0E1A 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-bg-effects .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.login-bg-effects .orb:nth-child(1) {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.login-bg-effects .orb:nth-child(2) {
    width: 300px; height: 300px;
    background: var(--secondary);
    bottom: -80px; left: -80px;
    animation-delay: -3s;
}

.login-bg-effects .orb:nth-child(3) {
    width: 200px; height: 200px;
    background: #FF6B6B;
    top: 50%; left: 50%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 440px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(108, 60, 225, 0.4); }
    50% { box-shadow: 0 8px 50px rgba(108, 60, 225, 0.6); }
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.form-group .input-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: var(--text-muted);
    font-size: 18px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.5);
}

.btn-login:active { transform: translateY(0); }

/* ===== APP LAYOUT ===== */
.app { display: none; min-height: 100vh; }
.app.active { display: flex; }
.login-page.hidden { display: none; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 0 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .s-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.sidebar-nav { flex: 1; padding: 0 12px; }

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

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(108, 60, 225, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.15), rgba(0, 212, 170, 0.08));
    color: var(--primary-light);
    font-weight: 600;
}

.nav-item .nav-icon { font-size: 20px; width: 24px; text-align: center; }

.nav-item .badge {
    margin-right: auto;
    margin-left: 0;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-details h4 { font-size: 13px; font-weight: 600; }
.user-details span { font-size: 11px; color: var(--text-muted); }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-right: 260px;
    padding: 24px 32px;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.top-bar h1 {
    font-size: 26px;
    font-weight: 800;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 280px;
    padding: 10px 16px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    width: 340px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.icon-btn {
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-card-2);
    color: var(--primary-light);
    border-color: var(--primary);
}

.icon-btn .notif-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(108, 60, 225, 0.15);
}

.stat-card:hover::before { opacity: 1; }

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

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.purple { background: rgba(108,60,225,0.12); color: var(--primary-light); }
.stat-icon.green { background: rgba(0,212,170,0.12); color: var(--secondary); }
.stat-icon.red { background: rgba(255,107,107,0.12); color: var(--accent); }
.stat-icon.orange { background: rgba(255,179,71,0.12); color: var(--accent-warn); }

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-trend.up { background: rgba(0,212,170,0.12); color: var(--secondary); }
.stat-trend.down { background: rgba(255,107,107,0.12); color: var(--accent); }

.stat-value {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover { border-color: rgba(108,60,225,0.2); }

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

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-header .card-action {
    font-size: 12px;
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.card-header .card-action:hover { color: var(--secondary); }

/* ===== CHART PLACEHOLDER ===== */
.chart-container {
    height: 280px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 36px;
    border-radius: 6px 6px 0 0;
    transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
    position: relative;
}

.chart-bar.primary { background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
.chart-bar.secondary { background: linear-gradient(180deg, var(--secondary-light), var(--secondary)); opacity: 0.6; }

.chart-bar:hover { opacity: 1; transform: scaleY(1.05); transform-origin: bottom; }

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: right;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr {
    transition: var(--transition);
}

.data-table tr:hover td {
    background: rgba(108,60,225,0.03);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.success { background: rgba(0,212,170,0.12); color: var(--secondary); }
.status-badge.warning { background: rgba(255,179,71,0.12); color: var(--accent-warn); }
.status-badge.danger { background: rgba(255,107,107,0.12); color: var(--accent); }
.status-badge.info { background: rgba(108,60,225,0.12); color: var(--primary-light); }

/* ===== ACTIVITY LIST ===== */
.activity-list { list-style: none; }

.activity-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.purple { background: var(--primary-light); }
.activity-dot.green { background: var(--secondary); }
.activity-dot.red { background: var(--accent); }
.activity-dot.orange { background: var(--accent-warn); }

.activity-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.activity-text strong { color: var(--text-primary); }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== PAGE SECTIONS ===== */
.page-section { display: none; animation: fadeIn 0.4s ease; }
.page-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== POS SECTION ===== */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    height: calc(100vh - 120px);
}

.pos-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    align-content: start;
    overflow-y: auto;
    padding-left: 4px;
}

.pos-product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.pos-product:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,60,225,0.15);
}

.pos-product .prod-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(108,60,225,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.pos-product .prod-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pos-product .prod-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary);
}

.pos-cart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pos-cart-header h3 { font-size: 16px; font-weight: 700; }

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-info { flex: 1; }
.cart-item-info .ci-name { font-weight: 600; margin-bottom: 2px; }
.cart-item-info .ci-qty { color: var(--text-muted); font-size: 12px; }
.cart-item-price { font-weight: 700; color: var(--secondary); }

.pos-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(108,60,225,0.03);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-total.grand {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary), #00B894);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,170,0.4);
}

/* ===== INVENTORY ===== */
.inv-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108,60,225,0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}

.modal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ===== INSURANCE CARDS ===== */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.insurance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.insurance-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.insurance-card .ins-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.insurance-card .ins-logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(108,60,225,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.insurance-card .ins-name { font-size: 15px; font-weight: 700; }
.insurance-card .ins-type { font-size: 12px; color: var(--text-muted); }

.insurance-card .ins-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ins-stat {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-xs);
    padding: 12px;
    text-align: center;
}

.ins-stat .is-val { font-size: 18px; font-weight: 800; }
.ins-stat .is-label { font-size: 11px; color: var(--text-muted); }

/* ===== REPORT CHARTS ===== */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.donut-chart {
    width: 200px; height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.donut-chart .center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-chart .center-text .val { font-size: 28px; font-weight: 800; }
.donut-chart .center-text .lbl { font-size: 12px; color: var(--text-muted); }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .sidebar.open { width: 260px; }
    .main-content { margin-right: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .pos-layout { grid-template-columns: 1fr; }
}

/* ===== LOADING SHIMMER ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 32px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateY(120%);
    transition: var(--transition);
}

.toast.show { transform: translateY(0); }
.toast .toast-icon { font-size: 22px; }
.toast .toast-msg { font-size: 13px; }
