/* FitVision AI — Global styles
   Palette: Deep Navy (#0a1230), Royal Green (#1fae6b), White, Black (#05070d), Orange (#ff8a3d)
*/

html, body { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(31,174,107,0.14), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255,138,61,0.10), transparent 40%),
    linear-gradient(180deg, #05070d 0%, #0a1230 40%, #0a1230 100%);
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #05070d; }
::-webkit-scrollbar-thumb { background: #1fae6b; border-radius: 8px; }

.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

.gradient-text {
  background: linear-gradient(90deg, #3fd991, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(90deg, #1fae6b, #158a54);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 rgba(31,174,107,0);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(31,174,107,0.45);
  transform: translateY(-1px);
}

.btn-orange {
  background: linear-gradient(90deg, #ff8a3d, #e56f22);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-orange:hover {
  box-shadow: 0 0 25px rgba(255,138,61,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  border-color: #1fae6b;
  background: rgba(31,174,107,0.08);
}

.nav-link {
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}
.nav-link:hover { color: #3fd991; }

.input-field {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  border-radius: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-field:focus {
  outline: none;
  border-color: #1fae6b;
  box-shadow: 0 0 0 3px rgba(31,174,107,0.18);
}
.input-field::placeholder { color: rgba(255,255,255,0.35); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: rgba(31,174,107,0.15); color: #3fd991; border: 1px solid rgba(31,174,107,0.35); }
.badge-orange { background: rgba(255,138,61,0.15); color: #ffab6e; border: 1px solid rgba(255,138,61,0.35); }

/* Pose overlay canvas sits exactly on top of the video */
.camera-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 1rem; overflow: hidden; }
.camera-wrap video, .camera-wrap canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.camera-wrap video { transform: scaleX(-1); }
.camera-wrap canvas { transform: scaleX(-1); }

.rep-counter {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #3fd991);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff4d4d;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,77,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

.feedback-toast {
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.spinner {
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #1fae6b;
  border-radius: 50%;
  width: 2rem; height: 2rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

table.styled-table th { color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; }
table.styled-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
table.styled-table tr:hover { background: rgba(255,255,255,0.03); }

.exercise-card { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.exercise-card:hover { transform: translateY(-4px); }
.exercise-card.selected { border-color: #1fae6b !important; box-shadow: 0 0 25px rgba(31,174,107,0.35); }
