:root {
  --bg-color: #0c1017;
  --card-bg: rgba(22, 27, 34, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(99, 102, 241, 0.4);
  --primary-accent: #6366f1;
  --secondary-accent: #06b6d4;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-highlight: #ffffff;
  --success: #10b981;
  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(6, 182, 212, 0.12);
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Background Glowing Orbs */
.bg-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--glow-1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--glow-2) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.dashboard-container {
  width: 100%;
  max-width: 1080px;
  padding: 40px 24px;
  z-index: 1;
}

/* Header */
.dashboard-header {
  text-align: center;
  margin-bottom: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 40%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.kpi-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 32px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--glow-1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

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

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rides-card .icon-wrapper {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
}

.stations-card .icon-wrapper {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.card-value-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.card-value {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

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

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-purple {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #a5f3fc;
}

.meta-footer {
  margin-top: 40px;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .dashboard-header h1 {
    font-size: 1.85rem;
  }
  .card-value {
    font-size: 2.6rem;
  }
  .kpi-card {
    padding: 28px 24px;
  }
}
