:root {
  --primary-color: #4f46e5;
  --secondary-color: #818cf8;
  --accent-color: #f472b6;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.8);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.15);
}

.btn-premium {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  opacity: 0.9;
  transform: scale(1.02);
  color: white;
}

.sidebar-premium {
  width: 280px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 2rem 1rem;
  z-index: 1000;
  overflow-y: auto;
}

.nav-link-premium {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  border-radius: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link-premium:hover,
.nav-link-premium.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link-premium i {
  font-size: 1.25rem;
  margin-right: 1rem;
}

.header-premium {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0.75rem;
  z-index: 900;
  position: sticky;
  top: 0;
}

.main-content-premium {
  padding: 0.5rem 1.5rem 1.5rem;
}

@media (max-width: 991.98px) {
  .header-premium {
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
  }

  .main-content-premium {
    padding: 0.25rem 1rem 1rem;
  }
}

.dropdown-menu.glass-card {
  z-index: 1100;
  margin-top: 0.5rem !important;
}

.metric-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.metric-card.primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.metric-card.success {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.metric-card.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-card.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.counter {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.level-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  text-align: right;
}

.level-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.level-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
