/* ==========================================================================
   WakeAI - Alarm Interaktif Teachable Machine
   Style Sheet (Vanilla CSS - Modern Dark Mode Aesthetics)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES / DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: rgba(22, 31, 48, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  /* Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.35);
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-orange: #ff4e50;
  --accent-orange-glow: rgba(255, 78, 80, 0.4);
  --accent-green: #00f260;
  --accent-green-glow: rgba(0, 242, 96, 0.4);
  --accent-yellow: #f6d365;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Border Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-glow-orange: 0 0 30px rgba(255, 78, 80, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Glow Circles in Background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  bottom: -100px;
  right: -100px;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.app-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--bg-card-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 25, 0.8);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--accent-cyan);
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.logo-text .highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--bg-card-border);
  transition: var(--transition-fast);
}

.status-loading {
  background: rgba(246, 211, 101, 0.1);
  color: var(--accent-yellow);
  border-color: rgba(246, 211, 101, 0.3);
}

.status-ready {
  background: rgba(0, 242, 96, 0.1);
  color: var(--accent-green);
  border-color: rgba(0, 242, 96, 0.3);
}

.status-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text-muted);
}

.status-active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* --------------------------------------------------------------------------
   4. CARDS & GENERAL LAYOUT
   -------------------------------------------------------------------------- */
.main-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-main);
}

.title-icon {
  color: var(--accent-cyan);
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   5. DIGITAL CLOCK SECTION
   -------------------------------------------------------------------------- */
.clock-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.9), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: var(--shadow-glow-cyan);
}

.clock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clock-date {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.live-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.pulsing-dot {
  font-size: 0.6rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

.digital-clock {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 30%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin: 0.5rem 0;
}

.clock-seconds {
  font-size: 0.5em;
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
}

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

/* --------------------------------------------------------------------------
   6. DASHBOARD GRID & ALARM FORM
   -------------------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.alarm-form {
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.time-input-wrapper {
  position: relative;
}

.custom-time-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition-fast);
}

.custom-time-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #050b14;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-orange), #d32f2f);
  color: #fff;
  box-shadow: var(--shadow-glow-orange);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--bg-card-border);
}

.btn-ghost:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost-danger {
  background: rgba(255, 78, 80, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 78, 80, 0.3);
}

.btn-ghost-danger:hover {
  background: rgba(255, 78, 80, 0.25);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #00b09b);
  color: #050b14;
  box-shadow: 0 0 25px var(--accent-green-glow);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Active Alarm Status Display Box */
.active-alarm-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.alarm-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.active-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  animation: bellRing 2s infinite ease-in-out;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50% { transform: rotate(15deg); }
  20%, 40% { transform: rotate(-15deg); }
  60% { transform: rotate(0deg); }
}

.alarm-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.alarm-time-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.alarm-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  background: var(--accent-cyan);
  color: #050b14;
  border-radius: var(--radius-full);
}

.divider {
  border: none;
  border-top: 1px solid var(--bg-card-border);
  margin: 1.5rem 0;
}

/* Quick Test Controls */
.quick-test-section h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.quick-test-section p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.test-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. MODEL INFO & DETECTABLE ITEMS CHIPS
   -------------------------------------------------------------------------- */
.items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.item-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.item-chip i {
  color: var(--accent-cyan);
}

.item-chip:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.placeholder-chip {
  color: var(--color-text-muted);
  border-style: dashed;
}

.model-guide-box {
  background: rgba(11, 15, 25, 0.6);
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
}

.model-guide-box h4 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-guide-box p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.guide-steps {
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.guide-steps li {
  margin-bottom: 0.25rem;
}

code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   8. FULLSCREEN ALARM OVERLAY (RINGING STATE)
   -------------------------------------------------------------------------- */
.alarm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.alarm-modal {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-orange);
  box-shadow: var(--shadow-glow-orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Flashing Banner */
.alarm-banner {
  background: linear-gradient(90deg, #ff4e50, #f9d423, #ff4e50);
  background-size: 200% 200%;
  animation: alarmGradient 2s ease infinite;
  color: #050b14;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@keyframes alarmGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.flashing-icon {
  animation: flashIcon 0.8s infinite alternate;
}

@keyframes flashIcon {
  from { opacity: 0.2; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Challenge Header */
.challenge-box {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
}

.challenge-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

.challenge-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0;
}

.challenge-title span {
  color: var(--accent-yellow);
  text-decoration: underline var(--accent-orange);
  text-underline-offset: 6px;
}

.challenge-instruction {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Video & Detection Results Split Layout */
.camera-detection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 1.5rem 1.5rem;
}

@media (max-width: 768px) {
  .camera-detection-grid {
    grid-template-columns: 1fr;
  }
}

/* Webcam Viewport Frame */
.webcam-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.webcam-viewport video,
.webcam-viewport canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera for natural feel */
}

/* Scanner Frame Overlay */
.scanner-frame {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 25%;
  pointer-events: none;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-sm);
}

.scanner-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-cyan);
  border-style: solid;
}

.top-left { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.top-right { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.bottom-right { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

.scanner-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: scanLine 2.5s ease-in-out infinite alternate;
}

@keyframes scanLine {
  from { top: 5%; }
  to { top: 95%; }
}

/* Hold Timer Bar inside Webcam Viewport */
.hold-timer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bg-card-border);
}

.hold-timer-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.hold-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hold-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  box-shadow: 0 0 12px var(--accent-green);
  transition: width 0.15s ease-out;
}

/* Detection Leaderboard Panel */
.detection-results-panel {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.panel-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.confidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  max-height: 260px;
  padding-right: 0.25rem;
}

.confidence-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
}

.confidence-item.target-match {
  border-color: var(--accent-green);
  background: rgba(0, 242, 96, 0.08);
}

.confidence-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.confidence-item-name {
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.confidence-item-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.confidence-item.target-match .confidence-item-value {
  color: var(--accent-green);
}

.confidence-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
  transition: width 0.15s ease-out;
  border-radius: var(--radius-full);
}

.confidence-item.target-match .confidence-bar-fill {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
}

.alarm-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: flex-end;
  background: rgba(11, 15, 25, 0.4);
}

/* --------------------------------------------------------------------------
   9. VICTORY OVERLAY
   -------------------------------------------------------------------------- */
.victory-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(25px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: victoryZoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes victoryZoom {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.victory-modal {
  width: 100%;
  max-width: 550px;
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.95), rgba(11, 15, 25, 0.98));
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 50px var(--accent-green-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.victory-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  background: rgba(0, 242, 96, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 30px var(--accent-green-glow);
}

.victory-icon {
  font-size: 3rem;
  color: var(--accent-green);
  animation: bounceTrophy 1.5s infinite;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.victory-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.victory-message {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.victory-message strong {
  color: var(--accent-cyan);
}

.motivational-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-yellow);
  background: rgba(246, 211, 101, 0.08);
  border-left: 3px solid var(--accent-yellow);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  text-align: left;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--bg-card-border);
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS (Mobile to Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .status-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .digital-clock {
    font-size: 3rem;
  }

  .button-group, .test-controls {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .challenge-title {
    font-size: 1.5rem;
  }
}
