:root {
  --nexus-primary: #6366f1;
  --nexus-bg: #f8fafc;
  --nexus-card: #ffffff;
  --nexus-text: #1e293b;
  --nexus-sidebar-bg: #1e293b;
  --nexus-sidebar-text: #e2e8f0;
}

[data-theme="dark"] {
  --nexus-bg: #0f172a;
  --nexus-card: #1e293b;
  --nexus-text: #f1f5f9;
  --nexus-sidebar-bg: #0f172a;
  --nexus-sidebar-text: #cbd5e1;
}

body {
  background-color: var(--nexus-bg);
  color: var(--nexus-text);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

/* Sidebar */
.sidebar {
  background-color: var(--nexus-sidebar-bg);
  color: var(--nexus-sidebar-text);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  padding-top: 20px;
  transition: transform 0.3s;
  z-index: 1040;
}
.sidebar a {
  color: var(--nexus-sidebar-text);
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  border-radius: 6px;
}
.sidebar a:hover, .sidebar a.active {
  background-color: rgba(99, 102, 241, 0.3);
}
.sidebar-logo {
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0 20px 20px;
  color: #818cf8;
}
.main-content {
  margin-left: 260px;
  padding: 20px;
}
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* Components */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--nexus-primary);
}
.stat-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--nexus-primary), #818cf8);
}
.card {
  background: var(--nexus-card);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}
.btn-primary {
  background-color: var(--nexus-primary);
  border-color: var(--nexus-primary);
}
.btn-primary:hover {
  background-color: #4f46e5;
}
.table th, .table td {
  vertical-align: middle;
}