:root {
  --bg-darker: #0f172a;
  --bg-dark: #1e293b;
  --bg-card: #334155;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body[data-bs-theme="dark"] {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
.header-title {
  font-family: "Outfit", sans-serif;
}

/* Sidebar Elements */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--bg-dark);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: fixed;
  z-index: 999;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.active {
  margin-left: -260px;
}

.sidebar ul li a {
  padding: 15px 20px;
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 12px;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(5px);
}

.sidebar ul li.active > a {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Content Area */
.content-wrapper {
  margin-left: 260px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 100vh;
}

.content-wrapper.active {
  margin-left: 0;
}

/* Navbar */
.navbar-custom {
  background: rgba(30, 41, 59, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Components/Cards */
.card-glass {
  background: rgba(51, 65, 85, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
}

.bg-primary-soft {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}
.bg-success-soft {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.bg-warning-soft {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.bg-info-soft {
  background: rgba(14, 165, 233, 0.15);
  color: var(--secondary);
}

/* Buttons & Inputs */
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .sidebar {
    margin-left: -260px;
  }
  .sidebar.active {
    margin-left: 0;
  }
  .content-wrapper {
    margin-left: 0;
  }
}
