/* General Reset & Modern Variables */
:root {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(52, 211, 153, 0.12) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.dashboard-container {
  width: 100%;
  max-width: 900px;
}

/* Header Styling */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

/* Metric Card Glassmorphism */
.metric-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4);
}

.metric-card.cyan:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.metric-card.emerald:hover {
  border-color: rgba(52, 211, 153, 0.5);
}

/* Icon Container */
.icon-box {
  width: 72px;
  height: 72px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyan .icon-box {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.emerald .icon-box {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
}

.icon-box svg {
  width: 36px;
  height: 36px;
}

/* Content */
.content {
  flex-grow: 1;
}

.label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.value-container {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.counter {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.description {
  margin-top: 0.5rem;
  font-size: 0.825rem;
  color: #64748b;
}

/* Pulse Effect Accent Lines */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}
