/* ==========================================================================
   FITDA DESIGN SYSTEM & CSS SHEET
   Theme: High-Tech Dark Cyberpunk / Glassmorphism
   ========================================================================== */

:root {
  /* Colors */
  --bg-darker: #060913;
  --bg-primary: #0b0f19;
  --bg-secondary: #131a2c;
  --bg-card: rgba(19, 26, 44, 0.6);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Accent Colors */
  --accent-primary: #6366f1; /* Indigo */
  --color-walk: #10b981;     /* Emerald Green */
  --color-cycle: #06b6d4;    /* Cyan */
  --color-gym: #a855f7;      /* Purple */
  --color-danger: #ef4444;   /* Red */
  --color-warning: #f59e0b;  /* Amber */
  
  /* Font & Effects */
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --glass-blur: blur(16px);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & GENERAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  color: #818cf8;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
}

input {
  font-family: var(--font-main);
  outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

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

/* ================= TOAST NOTIFICATIONS ================= */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(19, 26, 44, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  animation: slideIn 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 300px;
  max-width: 450px;
}

.toast.success { border-left: 4px solid var(--color-walk); }
.toast.info { border-left: 4px solid var(--color-cycle); }
.toast.warning { border-left: 4px solid var(--color-warning); }
.toast.danger { border-left: 4px solid var(--color-danger); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 4px;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

/* ================= AUTHENTICATION CONTAINER ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 45%),
              radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.12), transparent 45%),
              var(--bg-darker);
  gap: 32px;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--color-gym));
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand .pulse-icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 8px;
  animation: floatIcon 3s ease-in-out infinite;
}

.auth-brand h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease-out;
}

.auth-form h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: -12px;
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group label i {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.input-group input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.9);
}

/* Authentication Button */
.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  color: #fff;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Verification Code Style */
.verify-code-input {
  text-align: center;
  font-size: 1.8rem !important;
  letter-spacing: 12px;
  font-weight: 700;
  padding: 10px !important;
}

.verification-info-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-cycle);
}

.verification-info-box i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ================= SIMULATED MOCK EMAIL BOX ================= */
.mock-email-box {
  width: 100%;
  max-width: 550px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-email-header {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-email-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mock-email-dot.red { background: #ff5f56; }
.mock-email-dot.yellow { background: #ffbd2e; }
.mock-email-dot.green { background: #27c93f; }

.mock-email-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-email-body {
  padding: 20px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #c9d1d9;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty-inbox-text {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Mock Email Letter */
.email-letter {
  animation: fadeIn 0.4s ease-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-meta {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
  color: #8b949e;
}

.email-subject {
  color: #58a6ff;
  font-weight: bold;
}

.email-code-box {
  background: #21262d;
  border: 1px solid #30363d;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: #79c0ff;
  margin: 10px 0;
  border-left: 4px solid var(--accent-primary);
}

/* ================= MAIN APPLICATION SYSTEM ================= */
.app-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: var(--bg-darker);
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}

/* SIDEBAR SYSTEM */
.app-sidebar {
  width: 260px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 24px;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.sidebar-brand .pulse-icon {
  font-size: 1.8rem;
}

.sidebar-brand .brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-profile-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.user-profile-widget .avatar {
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.user-profile-widget .user-info {
  display: flex;
  flex-direction: column;
}

.user-profile-widget .user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-profile-widget .user-status {
  font-size: 0.75rem;
  color: var(--color-walk);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.user-profile-widget .status-dot {
  width: 6px;
  height: 6px;
  background: var(--color-walk);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-walk);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 18px;
  margin-bottom: 6px;
  padding-left: 12px;
}

.nav-item {
  background: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: var(--transition-fast);
}

.nav-item i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-item.active i {
  color: var(--accent-primary);
}

/* Nav specific highlights on active */
.nav-item.color-walking.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
.nav-item.color-walking.active i { color: var(--color-walk); }

.nav-item.color-cycling.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}
.nav-item.color-cycling.active i { color: var(--color-cycle); }

.nav-item.color-gym.active {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
}
.nav-item.color-gym.active i { color: var(--color-gym); }


.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Backup and Restore Container */
.backup-restore-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.backup-restore-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.backup-restore-btn i {
  width: 13px;
  height: 13px;
  color: var(--accent-primary);
}

.backup-restore-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  color: #fff;
}

.logout-btn {
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-danger);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* MAIN CONTENT AREA */
.app-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-topbar {
  height: 75px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--bg-primary);
  flex-shrink: 0;
}

.app-topbar h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Apple Watch Widget */
.apple-watch-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-icon-wrapper {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.watch-text {
  display: flex;
  flex-direction: column;
}

.watch-status-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.watch-status-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-walk);
}

.watch-sync-btn {
  background: var(--accent-primary);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.watch-sync-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.watch-sync-btn.syncing i {
  animation: rotateSync 1s infinite linear;
}

@keyframes rotateSync {
  to { transform: rotate(360deg); }
}

.date-widget {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-widget i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Scrollable Inner Panel Container */
.scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.content-panel {
  display: none;
  flex-direction: column;
  gap: 32px;
}

.content-panel.active {
  display: flex;
  animation: fadeIn 0.4s ease-out;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.welcome-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
}

.welcome-decor {
  font-size: 4rem;
  user-select: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

/* ================= CARDS & METRICS ================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.3;
}

.card-calories .card-glow { background: var(--color-danger); }
.card-time .card-glow { background: var(--color-warning); }
.card-distance .card-glow { background: var(--color-cycle); }
.card-hr .card-glow { background: var(--color-gym); }

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-header i {
  width: 20px;
  height: 20px;
}

.card-calories i { color: var(--color-danger); }
.card-time i { color: var(--color-warning); }
.card-distance i { color: var(--color-cycle); }
.card-hr i { color: var(--color-gym); }

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-value .unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-progress-wrapper {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-progress-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-calories .fill { background: var(--color-danger); box-shadow: 0 0 8px var(--color-danger); }
.card-time .fill { background: var(--color-warning); box-shadow: 0 0 8px var(--color-warning); }
.card-distance .fill { background: var(--color-cycle); box-shadow: 0 0 8px var(--color-cycle); }

.metric-progress-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hr-indicator-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.heart-pulse-icon {
  animation: heartPulse 1.2s infinite;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ================= CENTRAL DASHBOARD LAYOUT ================= */
.dashboard-mid-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.content-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: var(--accent-primary);
  width: 20px;
  height: 20px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-walk);
  border-color: rgba(16, 185, 129, 0.1);
}

.badge.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--color-gym);
  border-color: rgba(168, 85, 247, 0.1);
}

.badge.blue {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cycle);
  border-color: rgba(6, 182, 212, 0.1);
}

.chart-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Apple Watch Simulator Structure */
.simulator-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}

.watch-device {
  width: 140px;
  height: 180px;
  background: #27272a;
  border-radius: 28px;
  border: 3px solid #3f3f46;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  flex-shrink: 0;
  display: flex;
}

.watch-device::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 40px;
  width: 5px;
  height: 25px;
  background: #3f3f46;
  border-radius: 0 4px 4px 0;
}

.watch-screen {
  background: #000;
  border-radius: 20px;
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.watch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 600;
}

.watch-battery {
  width: 12px;
  height: 12px;
  color: var(--color-walk);
}

.watch-pulse-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: auto 0;
}

.watch-hr-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: watchRing 1.5s infinite linear;
}

.watch-hr-ring.ring-2 {
  animation-delay: 0.75s;
}

.watch-hr-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-danger);
  line-height: 1;
}

.watch-hr-lbl {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}

.watch-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #a1a1aa;
}

.watch-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.watch-stat i {
  width: 10px;
  height: 10px;
}

.watch-stat i[data-lucide="flame"] { color: var(--color-danger); }
.watch-stat i[data-lucide="clock"] { color: var(--color-warning); }

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

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sim-actions-list {
  display: flex;
  gap: 8px;
}

.btn-action-outline {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-action-outline i {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  color: #fff;
}

/* Quick launch shortcuts */
.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
  transform: scale(1.02);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  width: 22px;
  height: 22px;
}

.icon-circle.color-walking { background: rgba(16, 185, 129, 0.15); color: var(--color-walk); }
.icon-circle.color-cycling { background: rgba(6, 182, 212, 0.15); color: var(--color-cycle); }
.icon-circle.color-gym { background: rgba(168, 85, 247, 0.15); color: var(--color-gym); }

.quick-info {
  flex: 1;
}

.quick-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.quick-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-launch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-launch i {
  width: 14px;
  height: 14px;
}

.quick-card:hover .btn-launch {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ================= WORKOUT INTERFACE PANELS ================= */
.panel-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.control-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 480px;
  position: relative;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 8px;
}

.status-badge.active {
  color: var(--color-walk);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.live-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.live-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-stat-item .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.live-stat-item .value {
  font-size: 1.6rem;
  font-weight: 800;
  transition: var(--transition-fast);
}

.live-stat-item .sub-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Workout Warning label */
.workout-warning-label {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 6px;
  animation: pulseWarning 1.5s infinite;
}

.workout-warning-label i {
  color: var(--color-danger);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@keyframes pulseWarning {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.3); }
}

.warning-timer {
  color: var(--color-danger) !important;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.sensor-mini-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sensor-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sensor-pill i {
  width: 14px;
  height: 14px;
}

.sensor-pill i[data-lucide="heart"] { color: var(--color-danger); }
.sensor-pill i[data-lucide="signal"] { color: var(--color-walk); }
.sensor-pill i[data-lucide="gauge"] { color: var(--color-cycle); }

.action-buttons-stack {
  margin-top: 8px;
}

.start-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-walk), #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition-normal);
}

.start-btn:hover {
  background: linear-gradient(135deg, #059669, #065f46);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.start-btn.btn-cyan-theme {
  background: linear-gradient(135deg, var(--color-cycle), #0891b2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.start-btn.btn-cyan-theme:hover {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.dual-buttons-row {
  display: flex;
  gap: 12px;
}

.dual-buttons-row button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-normal);
}

.btn-warning {
  background: var(--color-warning);
}
.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--color-danger);
}
.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.workout-instruction-note {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 12px;
}

.workout-instruction-note h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.workout-instruction-note ul {
  list-style: none;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workout-instruction-note li {
  position: relative;
  padding-left: 10px;
}

.workout-instruction-note li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Map Styling */
.map-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
}

.map-wrapper-div {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.workout-map {
  width: 100%;
  height: 100%;
  z-index: 5;
}

.map-overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 30px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.map-overlay-info.fade-out {
  opacity: 0;
}

/* ================= GYM INTERFACE PANEL (SPOR SALONU) ================= */
.gym-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.anatomy-card {
  min-height: 520px;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -12px;
}

.anatomy-visual-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

.muscle-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.muscle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.muscle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.muscle-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--color-gym);
  color: #d8b4fe;
}

.anatomy-svg-wrapper {
  width: 100%;
  max-width: 440px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 10px;
}

/* SVG Anatomical Map Interactive Vectors */
.muscle-poly {
  fill: rgba(168, 85, 247, 0.08);
  stroke: rgba(168, 85, 247, 0.25);
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.muscle-poly:hover {
  fill: rgba(168, 85, 247, 0.25);
  stroke: rgba(168, 85, 247, 0.6);
}

.muscle-poly.active {
  fill: rgba(168, 85, 247, 0.45);
  stroke: var(--color-gym);
  filter: drop-shadow(0 0 4px var(--color-gym));
}

.body-skeleton {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.body-skeleton-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.body-skeleton-foot {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}

.svg-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-main);
}

/* Gym Details Column */
.gym-details-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.muscle-group-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.2);
}

.guide-box {
  background: rgba(168, 85, 247, 0.04);
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-top: 6px;
}

.guide-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d8b4fe;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guide-box-title i {
  width: 14px;
  height: 14px;
}

.guide-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Exercises Box List */
.exercises-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exercise-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.exercise-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
}

.exercise-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exercise-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.exercise-instructions {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.exercise-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exercise-target {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d8b4fe;
}

.exercise-sets {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Gym Simulator Card */
.gym-sim-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gym-stat-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.gym-stat-display .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gym-stat-display .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.gym-stat-display .val {
  font-size: 1.25rem;
  font-weight: 800;
}

.gym-action-buttons button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition: var(--transition-normal);
}

#btn-gym-start {
  background: linear-gradient(135deg, var(--color-gym), #7e22ce);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

#btn-gym-start:hover {
  background: linear-gradient(135deg, #9333ea, #6b21a8);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

/* ================= REPORTS PANEL (RAPORLAR) ================= */
.metric-card.card-total {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}
.metric-card.card-total-kcal {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
}
.metric-card.card-total-duration {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
}

.reports-charts-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.chart-full-card {
  height: 380px;
}

.chart-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-left h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left h3 i {
  color: var(--accent-primary);
  width: 20px;
  height: 20px;
}

.btn-action-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-action-danger:hover {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

/* History Workout Table Design */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
}

.workout-type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.type-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.type-indicator-dot.walking { background: var(--color-walk); box-shadow: 0 0 6px var(--color-walk); }
.type-indicator-dot.cycling { background: var(--color-cycle); box-shadow: 0 0 6px var(--color-cycle); }
.type-indicator-dot.gym { background: var(--color-gym); box-shadow: 0 0 6px var(--color-gym); }

.empty-table-cell {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 30px !important;
}

/* ================= ABOUT PANEL STYLES ================= */
.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.about-card {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--color-gym));
}

.about-icon-banner {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: floatIcon 3s ease-in-out infinite;
}

.about-subtitle-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

.about-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.author-showcase-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 30px auto;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warning);
}

.author-avatar i {
  width: 24px;
  height: 24px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.about-details-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 1024px) {
  .app-sidebar {
    width: 80px;
    padding: 16px 8px;
    align-items: center;
  }
  
  .sidebar-brand .brand-text, 
  .user-profile-widget .user-info,
  .sidebar-nav button span,
  .nav-section-title,
  .logout-btn span {
    display: none;
  }
  
  .user-profile-widget {
    padding: 6px;
    justify-content: center;
    border-radius: 50%;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .backup-restore-container {
    grid-template-columns: 1fr;
  }
  
  .logout-btn {
    justify-content: center;
    padding: 12px;
  }

  .dashboard-mid-row {
    grid-template-columns: 1fr;
  }

  .panel-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .gym-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .reports-charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-wrapper {
    flex-direction: column-reverse;
  }
  
  .app-sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  
  .sidebar-brand,
  .user-profile-widget,
  .nav-section-title,
  .sidebar-footer {
    display: none;
  }
  
  .sidebar-nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding: 0 10px;
  }
  
  .nav-item {
    width: auto;
    padding: 10px;
    background: none !important;
    border: none !important;
  }
  
  .nav-item i {
    width: 22px;
    height: 22px;
  }

  .app-topbar {
    padding: 0 16px;
  }
  
  .scrollable-content {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }
  
  .simulator-layout {
    flex-direction: column;
    align-items: center;
  }

  .about-card {
    padding: 24px 16px;
  }
  .about-details-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  /* Make maps responsive in height */
  .map-container-card {
    height: 300px;
  }
  
  /* Make metric values slightly smaller to prevent wrapping */
  .metric-value {
    font-size: 1.8rem;
  }
  
  /* Hide date widget on topbar on mobile to make room for watch sync button */
  .date-widget {
    display: none;
  }

  /* Make SVG body fit mobile */
  .anatomy-svg-wrapper {
    max-width: 100%;
    height: auto;
  }
}

/* AI Gym Program Import & Set Tracker Styles */
.collapsible-ai-box {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
}
.collapsible-ai-box.hidden {
  max-height: 0;
  margin-top: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Set Checker Row */
.set-checker-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-card-sub);
  border-radius: 10px;
  border: 1px dashed var(--border-color);
  align-items: center;
}
.set-checker-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.set-bubble-wrapper {
  display: flex;
  gap: 6px;
}
.set-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.set-bubble:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.set-bubble.checked {
  background: linear-gradient(135deg, #10b981, #059669); /* emerald green gradient */
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
