/* ZELVORA - Adafrik Dark Mode Clone - Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #0A0E1A;
  --bg-card: #111827;
  --bg-card-hover: #1A2332;
  --bg-sidebar: #0F172A;
  --bg-input: #1A2332;
  --border: #1E293B;
  --border-light: #2D3748;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-font-smoothing:antialiased}
body{background:var(--bg);color:var(--text);font-family:'Inter',sans-serif;font-size:14px;line-height:1.5}

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

/* Sidebar - Adafrik style dark */
.sidebar{width:260px;background:var(--bg-sidebar);border-right:1px solid var(--border);position:fixed;top:0;left:0;bottom:0;z-index:50;display:flex;flex-direction:column;overflow:hidden}
.sidebar-header{height:64px;padding:0 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border)}
.sidebar-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.sidebar-logo-icon{width:32px;height:32px;background:#2563EB;border-radius:8px;display:grid;place-items:center;color:white;font-weight:800;font-size:16px}
.sidebar-logo-text{font-weight:800;font-size:16px;color:var(--text);letter-spacing:-.02em}
.sidebar-nav{flex:1;overflow-y:auto;padding:16px 12px;display:flex;flex-direction:column;gap:24px;scrollbar-width:none}
.sidebar-nav::-webkit-scrollbar{display:none}
.nav-section{display:flex;flex-direction:column;gap:4px}
.nav-section-title{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);padding:0 10px;margin-bottom:8px}
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--text-muted);text-decoration:none;font-size:13.5px;font-weight:500;transition:all .15s;cursor:pointer}
.nav-item:hover{background:var(--bg-card);color:var(--text)}
.nav-item.active{background:#1E293B;color:white;border:1px solid var(--border-light)}
.nav-item .icon{width:18px;height:18px;display:grid;place-items:center;opacity:.8}
.nav-item.active .icon{opacity:1}
.nav-badge{margin-left:auto;background:var(--primary);color:white;font-size:11px;padding:2px 8px;border-radius:var(--radius-full);font-weight:700}

.sidebar-footer{padding:12px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:12px}
.theme-toggle{display:flex;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-full);padding:4px;gap:4px}
.theme-btn{flex:1;padding:6px 12px;border-radius:var(--radius-full);font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:var(--text-muted);display:flex;align-items:center;justify-content:center;gap:6px;transition:all .15s}
.theme-btn.active{background:white;color:#0F172A;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.store-switcher{display:flex;align-items:center;gap:10px;padding:10px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer}
.store-switcher-avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);display:grid;place-items:center;font-weight:700;color:white;font-size:12px}
.store-switcher-info{flex:1;min-width:0}
.store-switcher-name{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-switcher-role{font-size:11px;color:var(--text-muted)}

/* Main */
.main{flex:1;margin-left:260px;min-height:100vh;background:var(--bg)}
.topbar{height:64px;background:var(--bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.topbar-left{display:flex;align-items:center;gap:16px}
.topbar-title{font-size:18px;font-weight:700;letter-spacing:-.01em}
.topbar-actions{display:flex;align-items:center;gap:8px}
.icon-btn{width:36px;height:36px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-card);display:grid;place-items:center;cursor:pointer;color:var(--text-muted);transition:all .15s}
.icon-btn:hover{background:var(--bg-card-hover);color:var(--text);border-color:var(--border-light)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:white;display:grid;place-items:center;font-weight:700;font-size:12px;cursor:pointer}

.content{padding:24px;max-width:1400px;margin:0 auto}

/* Banner - Adafrik orange */
.banner{padding:14px 20px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.banner-warning{background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.2);color:#FBBF24}
.banner-info{background:rgba(37,99,235,.1);border:1px solid rgba(37,99,235,.2);color:#60A5FA}

/* Stats - Adafrik dark cards */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;transition:all .15s}
.stat-card:hover{border-color:var(--border-light);background:var(--bg-card-hover)}
.stat-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px}
.stat-value{font-size:28px;font-weight:800;letter-spacing:-.02em}
.stat-change{font-size:12px;color:var(--success);display:flex;align-items:center;gap:4px;margin-top:8px}

/* Cards */
.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.card-header{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.card-title{font-weight:600;font-size:14px}
.card-body{padding:20px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 16px;border-radius:var(--radius-sm);font-weight:500;font-size:13px;border:none;cursor:pointer;transition:all .15s;text-decoration:none}
.btn-primary{background:var(--primary);color:white}
.btn-primary:hover{background:var(--primary-hover);transform:translateY(-1px)}
.btn-secondary{background:var(--bg-card);color:var(--text);border:1px solid var(--border)}
.btn-secondary:hover{background:var(--bg-card-hover);border-color:var(--border-light)}
.btn-ghost{background:transparent;color:var(--text-muted);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--bg-card);color:var(--text)}
.btn-sm{padding:6px 12px;font-size:12px}
.btn-warning{background:#F59E0B;color:black;font-weight:600}
.btn-warning:hover{background:#D97706}

/* Forms */
.form-group{margin-bottom:14px}
.form-label{display:block;font-size:12px;font-weight:500;margin-bottom:6px;color:var(--text-muted)}
.form-input,.form-select,.form-textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;background:var(--bg-input);color:var(--text);transition:all .15s}
.form-input::placeholder{color:var(--text-dim)}
.form-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.form-textarea{min-height:80px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* Tables - dark */
.table-container{overflow-x:auto}
.table{width:100%;border-collapse:collapse}
.table th{text-align:left;padding:12px 16px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:14px 16px;font-size:13px;border-bottom:1px solid var(--border);color:var(--text)}
.table tr:hover td{background:var(--bg-card-hover)}
.table tr:last-child td{border-bottom:none}

/* Badges */
.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--radius-full);font-size:11px;font-weight:600}
.badge-success{background:rgba(16,185,129,.15);color:#10B981;border:1px solid rgba(16,185,129,.2)}
.badge-warning{background:rgba(245,158,11,.15);color:#F59E0B;border:1px solid rgba(245,158,11,.2)}
.badge-danger{background:rgba(239,68,68,.15);color:#EF4444;border:1px solid rgba(239,68,68,.2)}
.badge-gray{background:var(--bg-input);color:var(--text-muted);border:1px solid var(--border)}
.badge-primary{background:var(--primary);color:white}

/* Empty */
.empty{text-align:center;padding:48px 20px}
.empty-icon{width:64px;height:64px;margin:0 auto 16px;background:var(--bg-card);border:1px dashed var(--border);border-radius:var(--radius);display:grid;place-items:center;color:var(--text-muted)}
.empty h3{font-size:15px;font-weight:600;margin-bottom:8px}
.empty p{color:var(--text-muted);font-size:13px;max-width:320px;margin:0 auto 16px}

/* Modals - dark */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);z-index:100;display:none;align-items:center;justify-content:center;padding:24px}
.modal-overlay.open{display:flex}
.modal{background:var(--bg-card);border:1px solid var(--border);border-radius:16px;width:100%;max-width:520px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.modal-header{padding:20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.modal-title{font-weight:600;font-size:15px}
.modal-close{width:28px;height:28px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-input);cursor:pointer;display:grid;place-items:center;color:var(--text-muted)}
.modal-body{padding:20px}
.modal-footer{padding:16px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:var(--bg-sidebar);border-radius:0 0 16px 16px}

/* Filters - Adafrik style */
.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.filter-input{padding:10px 14px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:13px;min-width:200px}
.filter-input::placeholder{color:var(--text-dim)}

/* Responsive */
@media(max-width:1024px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .main{margin-left:0}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .content{padding:16px}
  .stats-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}
</style>
