/* AI Swimming Coach - Blue Primary Theme (matching reference design) */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --accent: #1cc6ba;
  --accent-dark: #14a096;
  --bg-app: #EFF6FF;
  --bg-card: #ffffff;
  --text-main: #1C2A3A;
  --text-muted: #6B8096;
  --text-inverse: #ffffff;
  --danger: #FF4757;
  --warning: #FFA502;
  --success: #2ED573;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 16px rgba(21, 101, 192, 0.08);
  --shadow-strong: 0 8px 24px rgba(21, 101, 192, 0.18);
}

body {
  background: var(--bg-app) !important;
  color: var(--text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
}

.container {
  padding-bottom: 90px !important;
}

h1 {
  color: var(--primary-dark) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

input, select {
  background: var(--bg-card) !important;
  border: 1.5px solid rgba(21, 101, 192, 0.15) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-sm) !important;
}

input:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12) !important;
  outline: none !important;
}

label {
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}

.btn {
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #1976D2, #0D47A1) !important;
  color: #fff !important;
  box-shadow: var(--shadow-strong) !important;
}

.btn-secondary {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 1.5px solid rgba(21, 101, 192, 0.2) !important;
  box-shadow: var(--shadow-soft) !important;
}

.btn-pink {
  background: linear-gradient(135deg, #1976D2, #0D47A1) !important;
  color: #fff !important;
  box-shadow: var(--shadow-strong) !important;
}

.btn-ghost {
  background: transparent !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important;
}

/* Auth card */
.auth-section {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
  padding: 24px !important;
}

.auth-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
}

/* Metrics panel */
.metrics-panel {
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
}

.metrics-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.metric-item {
  background: #F0F7FF !important;
  border-radius: var(--radius-sm) !important;
}

.metric-item.active {
  background: #FFF0F0 !important;
  border: 1px solid rgba(255, 71, 87, 0.3) !important;
}

/* Timeline */
.timeline-log {
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
}

.timeline-log-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* Bottom nav */
.bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 -2px 20px rgba(21, 101, 192, 0.08) !important;
  border-top: none !important;
}

.nav-item.active {
  color: var(--primary) !important;
}

.nav-center-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  box-shadow: 0 6px 20px rgba(28, 198, 186, 0.4) !important;
}

/* Cards */
.stats-card, .ring-card, .training-log-card {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

.stats-title {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

/* History */
.history-item {
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
  border-left: 4px solid var(--primary) !important;
}

.history-date {
  color: var(--text-main) !important;
  font-weight: 700 !important;
}

/* Chart */
.chart-container {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

.chart-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* Toast */
.toast {
  background: rgba(13, 71, 161, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  color: white !important;
  border-radius: 20px !important;
}

/* Modal */
.modal-content {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.modal-title {
  color: var(--primary) !important;
}

/* Role cards */
.role-card.selected {
  border-color: var(--primary) !important;
  background: #EFF6FF !important;
}

/* Coach lobby */
.coach-card {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* Profile */
.profile-card {
  background: var(--bg-card) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* Watch sync button */
.btn-watch-sync {
  border-color: rgba(21, 101, 192, 0.2) !important;
}

/* Save training button */
.btn-save-training {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3) !important;
}

/* Loading spinner */
.spinner {
  border-top-color: var(--primary) !important;
}
