/* New unified theme with dark sidebar and light content */
:root {
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-secondary: #f97316;
  --color-success: #16a34a;
  --color-warning: #facc15;
  --color-info: #0ea5e9;
  --color-bg-light: #f3f4f6;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --sidebar-bg: #111827;
  --sidebar-bg2: #1f2937;
  --sidebar-text: #e5e7eb;
}

body {
  background: var(--color-bg-light);
  color: var(--color-text-main);
  font-family: "Tajawal", sans-serif;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}

/* Buttons */
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: rgba(220,38,38,0.06);
}

/* Sidebar */
.app-sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg2));
  color: var(--sidebar-text);
  width: 250px;
  min-height: 100vh;
  padding: 20px;
}
.app-sidebar a {
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s;
}
.app-sidebar a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-primary);
}
.app-sidebar a.active {
  background: rgba(255,255,255,0.15);
  color: var(--color-primary);
}

/* Header */
.app-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px;
}

/* Badges */
.badge.bg-success { background: #dcfce7; color:#166534; }
.badge.bg-warning { background: #ffedd5; color:#c2410c; }
.badge.bg-primary { background: #dbeafe; color:#1d4ed8; }
.badge.bg-info    { background: #dbeafe; color:#1d4ed8; }
.badge.bg-danger  { background: #fee2e2; color:#b91c1c; }

/* Tables */
table.table {
  color: var(--color-text-main);
}

/* Mobile improvements */
@media(max-width: 768px) {
  .app-sidebar { position: fixed; left: -260px; transition: .3s; }
  .app-sidebar.show { left: 0; }
}
