:root {
  --bg: #1e293b;
  --panel: #1e293b;
  --panel-2: #334155;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #6366f1;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.12);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: var(--text);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

.auth-card .form-control::placeholder {
  color: #8fa0b8;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.55);
  padding: 24px 18px;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand h5 {
  margin: 0;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar .nav-link {
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.18);
}

.sidebar .nav-link i {
  margin-right: 10px;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

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

.search-box {
  width: 280px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 999px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 700;
}

.hero-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(15,23,42,0.95));
  border-radius: 24px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #c7d2fe;
  margin-bottom: 8px;
}

.hero-visual {
  min-width: 260px;
}

.pulse-card {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 18px;
}

.mini-bars,
.sales-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-top: 14px;
}

.mini-bars div,
.chart-bar {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #f8fafc, rgba(99,102,241,0.9));
}

.stat-card,
.glass-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.stat-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  align-items: center;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.2rem;
}

.card-body {
  padding: 20px;
  color: #fff;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.activity-list li:last-child {
  border-bottom: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
}

.table {
  color: var(--text);
}

.table thead th {
  border-color: var(--border);
  color: var(--muted);
}

.table td,
.table th {
  border-color: var(--border);
}

.text-muted{
    color: #fff !important;
}
.card-title{    
    color: #fff !important;
}

@media (max-width: 992px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }
}
