:root {
  --primary-color: #2563EB;
  --primary-hover: #1D4ED8;
  --success-color: #10B981;
  --danger-color: #EF4444;
  --warning-color: #F59E0B;
  --bg-color: #F8FAFC;
  --sidebar-bg: #0F172A;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
}

[data-theme="dark"] {
  --bg-color: #0F172A;
  --card-bg: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #334155;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.auth-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.glass-card, .auth-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar-wrapper {
  width: 260px;
  min-height: 100vh;
  background-color: var(--sidebar-bg);
  flex-shrink: 0;
  transition: margin-left 0.3s ease;
}

.bg-dark-slate {
  background-color: var(--sidebar-bg) !important;
}

.main-content-wrapper {
  flex-grow: 1;
  width: calc(100% - 260px);
  background-color: var(--bg-color);
}

.nav-link.active {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-7 {
  font-size: 0.75rem;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: rgba(0,0,0,0.025);
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}