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

:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --accent: #2563eb;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glass card styling */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* Numeric Keypad */
.keypad-btn {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}
.keypad-btn:active {
  background: #475569;
  transform: scale(0.96);
}

/* PIN Indicator dots */
.pin-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #64748b;
  transition: all 0.2s ease;
}
.pin-dot.filled {
  background-color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

/* Workout Card */
.workout-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.workout-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px rgba(56, 189, 248, 0.2);
}

/* Timer Warning Animations */
.timer-normal {
  color: #38bdf8;
}
.timer-warn {
  color: #fbbf24;
  animation: pulse 1s infinite;
}
.timer-danger {
  color: #f87171;
  animation: pulse 0.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
