@import "tailwindcss";

:root {
  --ink: #0f1115;
  --slate: #6b7280;
  --card: #ffffff;
  --mist: #e7eaf1;
  --accent: #2c5ff6;
  --accent-warm: #ff7a45;
  --accent-mint: #36c88a;
  --accent-gold: #f5b700;
  --accent-purple: #8b5cf6;
  --sky: #e8f0ff;
  --coral: #ffe3d6;
  --mint: #ddf6ec;
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 40px rgba(44, 95, 246, 0.15);
  --shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(44, 95, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 12% 10%, var(--sky) 0%, transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, var(--coral) 0%, transparent 45%),
    radial-gradient(circle at 15% 90%, var(--mint) 0%, transparent 40%),
    linear-gradient(160deg, #f8f9fe 0%, #f4f6fc 55%, #f0f3fa 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(44, 95, 246, 0.2);
}

/* Premium Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Premium Card with subtle gradient and glow */
.card {
  border-radius: 1.25rem;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(250, 251, 255, 0.95) 50%,
      rgba(248, 250, 255, 0.92) 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 100%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  border-color: rgba(44, 95, 246, 0.15);
}

/* Premium Chip/Badge */
.chip {
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* Animated gradient border for special cards */
.card-glow {
  position: relative;
}

.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(44, 95, 246, 0.3) 0%,
      rgba(139, 92, 246, 0.2) 50%,
      rgba(255, 122, 69, 0.2) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-glow:hover::after {
  opacity: 1;
}

/* Metric card specific enhancements */
.metric-icon {
  background: linear-gradient(135deg,
      rgba(44, 95, 246, 0.12) 0%,
      rgba(139, 92, 246, 0.08) 50%,
      rgba(255, 122, 69, 0.08) 100%);
  box-shadow:
    0 4px 12px rgba(44, 95, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Stats pill enhancements */
.stat-pill {
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.1) 0%, rgba(255, 122, 69, 0.05) 100%);
  border: 1px solid rgba(255, 122, 69, 0.15);
  color: #ea580c;
}

.stat-pill-success {
  background: linear-gradient(135deg, rgba(54, 200, 138, 0.1) 0%, rgba(54, 200, 138, 0.05) 100%);
  border: 1px solid rgba(54, 200, 138, 0.15);
  color: #059669;
}

.stat-pill-info {
  background: linear-gradient(135deg, rgba(44, 95, 246, 0.1) 0%, rgba(44, 95, 246, 0.05) 100%);
  border: 1px solid rgba(44, 95, 246, 0.15);
  color: #2563eb;
}

/* Section dividers with gradient */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(226, 232, 240, 0.8) 20%,
      rgba(226, 232, 240, 0.8) 80%,
      transparent 100%);
}

/* Premium button styling */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: white;
  border: none;
  box-shadow:
    0 4px 14px rgba(44, 95, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(44, 95, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.5) 0%, rgba(148, 163, 184, 0.7) 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.6) 0%, rgba(100, 116, 139, 0.8) 100%);
}

/* Animated skeleton loading */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 100%);
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}

/* Pulse animation for live indicators */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.live-indicator {
  position: relative;
}

.live-indicator::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}