:root {
  /* Modern Premium Color System */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-500: #3b5b9b;    /* sophisticated slate blue */
  --primary-600: #2c4c8c;
  --primary-700: #1e3a7a;
  
  --neutral-50: #fafbfc;
  --neutral-100: #f5f7fa;
  --neutral-200: #eef2f6;
  --neutral-300: #e2e8f0;
  --neutral-400: #cbd5e1;
  --neutral-500: #94a3b8;
  --neutral-600: #64748b;
  --neutral-700: #475569;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  --accent-400: #9b8b7c;      /* warm taupe */
  --accent-500: #8a7a6b;
  --accent-600: #7a6a5b;
  
  --success: #2e7d67;
  --warning: #c48b56;
  --error: #b55464;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  --gradient-primary: linear-gradient(135deg, #3b5b9b 0%, #2c4c8c 100%);
  --gradient-accent: linear-gradient(135deg, #9b8b7c 0%, #8a7a6b 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--neutral-50);
  color: var(--neutral-800);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Modern Sidebar */
.sidebar {
  width: 300px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--glass-border);
  padding: 32px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 30px -10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.brand {
  margin-bottom: 48px;
  padding: 8px 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 20px -8px rgba(59, 91, 155, 0.3);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-500);
  letter-spacing: 0.3px;
  margin-top: 2px;
  -webkit-text-fill-color: var(--neutral-500);
}

/* Navigation */
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--neutral-600);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid transparent;
}

.nav-icon {
  width: 32px;
  height: 32px;
  background: var(--neutral-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.nav-content {
  flex: 1;
}

.nav-content strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--neutral-800);
}

.nav-content small {
  display: block;
  font-size: 11px;
  color: var(--neutral-500);
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.nav-item:hover {
  background: white;
  border-color: var(--neutral-200);
  transform: translateX(6px);
  box-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.1);
}

.nav-item:hover .nav-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

.nav-item.active {
  background: white;
  border-color: var(--primary-100);
  box-shadow: 0 15px 30px -15px rgba(59, 91, 155, 0.2);
}

.nav-item.active .nav-icon {
  background: var(--gradient-primary);
  color: white;
}

.nav-item.active .nav-content strong {
  color: var(--primary-600);
}

/* Main Content */
.main {
  flex: 1;
  padding: 40px;
  background: var(--neutral-50);
  position: relative;
  overflow-x: hidden;
}

.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(59, 91, 155, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.header-content {
  max-width: 800px;
}

.header h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--neutral-900);
}

.header-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.header p {
  font-size: 18px;
  color: var(--neutral-600);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.7;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -20px rgba(59, 91, 155, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--neutral-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-500);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 14px;
  color: var(--neutral-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-trend {
  display: inline-block;
  padding: 4px 8px;
  background: var(--neutral-100);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  color: var(--success);
}

.stat-trend.positive {
  color: var(--success);
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--neutral-200);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  background: var(--neutral-100);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-600);
  letter-spacing: 0.3px;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--neutral-100);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.card p {
  color: var(--neutral-600);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--neutral-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features li::before {
  content: "✓";
  color: var(--primary-500);
  font-weight: 700;
}

.card-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-500);
  font-weight: 600;
  font-size: 15px;
}

.card-footer span {
  transition: transform 0.3s ease;
}

.card:hover .card-footer span {
  transform: translateX(8px);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary-100);
  box-shadow: 0 40px 80px -20px rgba(59, 91, 155, 0.3);
}

/* Quick Actions */
.quick-actions {
  margin-top: 48px;
  padding: 32px;
  background: white;
  border-radius: 32px;
  border: 1px solid var(--neutral-200);
  position: relative;
  z-index: 1;
}

.quick-actions h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--neutral-50);
  border-radius: 20px;
  text-decoration: none;
  color: var(--neutral-700);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.action-button:hover {
  background: white;
  border-color: var(--primary-100);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -15px rgba(59, 91, 155, 0.2);
}

.action-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.action-text {
  font-weight: 600;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  
  .main {
    padding: 24px;
  }
  
  .header h1 {
    font-size: 36px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 32px;
  }
  
  .card {
    padding: 24px;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card, .card, .action-button {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.4s; }