* { box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #0b1220, #020617);
  color: #e5edff;
}

.app { display: flex; flex-direction: row; height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg,#020617,#020617);
  padding: 25px 15px;
  flex-shrink: 0;
}

.logo { color:#7c3aed; font-weight:800; margin-bottom: 25px; }

.sidebar ul { padding:0; }
.sidebar li {
  list-style:none; padding:12px; margin-bottom:8px; border-radius:10px; cursor:pointer;
}
.sidebar li.active,
.sidebar li:hover { background: rgba(124,58,237,0.18); color:#c4b5fd; }
.sidebar footer { font-size:12px; opacity:0.5; margin-top:30px; }

/* Main */
.main { flex:1; padding:25px 35px; overflow-y:auto; }

/* Demo Alert */
.demo-alert {
  background: linear-gradient(90deg, #facc15, #f87171);
  color:#020617; font-weight:600; padding:12px 20px; border-radius:12px;
  text-align:center; margin-bottom:15px; box-shadow:0 5px 20px rgba(0,0,0,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%{transform:translateY(0);}50%{transform:translateY(-4px);}100%{transform:translateY(0);} }

/* Topbar */
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:25px; }
.export {
  border:none; border-radius:12px; padding:10px 18px;
  background: linear-gradient(135deg,#7c3aed,#4c1d95);
  color:#020617; font-weight:600; cursor:pointer;
}

/* KPI Cards */
.kpi-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:40px; }
.card {
  padding:20px; border-radius:20px; box-shadow:0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.4s, box-shadow 0.4s; cursor:pointer;
}
.card:hover { transform:translateY(-8px) scale(1.03); box-shadow:0 30px 70px rgba(0,0,0,0.7); }
.card h3 { margin:0 0 10px; }
.card p { font-size:22px; font-weight:800; }
.card span { font-size:13px; opacity:0.8; }

.green { background: linear-gradient(135deg,#22c55e,#064e3b); }
.blue { background: linear-gradient(135deg,#38bdf8,#1e3a8a); }
.orange { background: linear-gradient(135deg,#f59e0b,#7c2d12); }
.red { background: linear-gradient(135deg,#ef4444,#7f1d1d); }

/* Charts */
.charts { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin-bottom:30px; }
.chart-card {
  background: rgba(255,255,255,0.05); border-radius:22px; padding:24px;
  box-shadow:0 25px 80px rgba(0,0,0,0.6);
}

/* Transactions Table */
.transactions { overflow-x:auto; margin-bottom:40px; }
.transactions table { width:100%; border-collapse:collapse; }
.transactions th, .transactions td {
  padding:12px; text-align:right;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.transactions th { opacity:0.7; }
.transactions td.success { color:#22c55e; font-weight:600; }
.transactions td.warning { color:#facc15; font-weight:600; }
.transactions td.danger { color:#ef4444; font-weight:600; }

/* Responsive */
@media(max-width:1200px){ .kpi-cards{grid-template-columns:repeat(2,1fr);} .charts{grid-template-columns:1fr;} }
@media(max-width:768px){
  .app{flex-direction:column;}
  .sidebar{width:100%; display:flex; overflow-x:auto;}
  .sidebar ul{display:flex; flex-direction:row; gap:10px;}
  .kpi-cards{grid-template-columns:1fr;}
  .main{padding:15px;}
}
.sidebar li{
    text-decoration: none;
    color: white;
    display: block;
    list-style: none;
    border-bottom: none;
    border: none;
}
.a{
    text-decoration: none;
    color: white;
    list-style: none;
    border: none;}