@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ae-bg: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05), transparent 34%),
            radial-gradient(circle at 78% 0%, rgba(14, 165, 233, 0.05), transparent 42%),
            linear-gradient(145deg, rgba(8, 15, 30, 0.88), rgba(7, 11, 22, 0.96));
  --ae-grid: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
             linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  --ae-card: rgba(10, 12, 26, 0.82);
  --ae-border: rgba(71, 85, 105, 0.7);
  --ae-highlight: #5aa0d6;
  --ae-muted: #94a3b8;
}

* {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background-color: #020617;
  background-image: var(--ae-bg), var(--ae-grid);
  background-size: cover, 220px 220px;
  background-blend-mode: soft-light;
  color: #e2e8f0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ae-shell {
  max-width: 1200px;
}

.ae-card {
  background: linear-gradient(155deg, rgba(6, 11, 24, 0.9), rgba(8, 13, 28, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  cursor: default;
}

.ae-panel {
  background: linear-gradient(150deg, rgba(9, 12, 26, 0.95), rgba(11, 16, 32, 0.88));
  border: 1px solid rgba(99, 115, 139, 0.3);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

.glow-accent {
  position: relative;
  overflow: hidden;
  animation: pulse-glow 4s ease-in-out infinite;
}
.glow-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 45%);
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(14, 165, 233, 0.3);
  }
}

.score-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.progress-bar {
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sparkline-path,
.sparkline-path-2 {
  animation: drawPath 2s ease-out forwards;
}

.sparkline-path-2 {
  animation-delay: 0.3s;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.sparkline {
  height: 60px;
  width: 100%;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 10px rgba(90, 160, 214, 0.12));
}

.data-grid {
  background: linear-gradient(180deg, rgba(12, 74, 110, 0.05), rgba(12, 74, 110, 0));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.section-label {
  letter-spacing: 0.3em;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ae-highlight);
  outline-offset: 3px;
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 9999px;
  background: #5aa0d6;
  box-shadow: 0 0 0 6px rgba(90, 160, 214, 0.12);
}

.ae-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(32, 61, 117, 0.9), rgba(26, 68, 122, 0.82));
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.ae-btn-primary:hover {
  background: linear-gradient(135deg, rgba(42, 82, 146, 0.95), rgba(30, 76, 132, 0.9));
  border-color: rgba(148, 163, 184, 0.5);
}

.ae-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(100, 116, 139, 0.7);
  background: rgba(9, 13, 26, 0.8);
  color: #e2e8f0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ae-btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: #f8fafc;
  background: rgba(12, 16, 32, 0.9);
}

.bg-sky-500 {
  background-color: #1f3b63 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.38) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

.hover\:bg-sky-400:hover {
  background-color: #2b4c80 !important;
}

@media (max-width: 768px) {
  .section-label {
    letter-spacing: 0.18em;
  }
}
