@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;
}

/* Print Styles for Coach & Student Handouts */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  header, footer, nav, button, #filter-ramp-container, .no-print {
    display: none !important;
  }
  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .text-white, .text-slate-100, .text-slate-300, .text-slate-400 {
    color: #111827 !important;
  }
  .print-only {
    display: block !important;
  }
  .print-header {
    border-bottom: 2px solid #111827;
    padding-bottom: 12px;
    margin-bottom: 24px;
  }
  .print-problem-card {
    page-break-inside: avoid;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
  }
  .print-workspace {
    display: block !important;
    height: 150px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 12px;
    background: #f8fafc;
    position: relative;
  }
  .print-workspace::after {
    content: "SCRATCHWORK & CALCULATION SPACE";
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 8pt;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
  }
}
