* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ===== LOGIN SCREEN ===== */
#login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.login-box h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.login-box p {
  color: #aaa;
  margin-bottom: 30px;
}

.login-box input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
}

.login-box input::placeholder {
  color: #888;
}

.login-box button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.error {
  color: #ff6b6b;
  margin-top: 15px;
}

/* ===== APP LAYOUT ===== */
#app-screen {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  padding: 20px 0;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: #aaa;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.nav-link.active {
  color: #fff;
  background: rgba(102, 126, 234, 0.2);
  border-left-color: #667eea;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255,107,107,0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 220px;
  padding: 30px;
  min-height: 100vh;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tab-header h1 {
  font-size: 2rem;
}

.date-display {
  color: #aaa;
  font-size: 0.9rem;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dash-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.card-icon {
  font-size: 2.5rem;
}

.card-content {
  flex: 1;
}

.card-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-unit {
  font-size: 1rem;
  color: #aaa;
}

.card-label {
  color: #aaa;
  margin-top: 5px;
}

.card-sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 5px;
}

.progress-mini {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* Recent Activity */
.recent-section {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 20px;
}

.recent-section h3 {
  margin-bottom: 15px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.activity-date {
  color: #888;
  font-size: 0.85rem;
}

.activity-text {
  color: #ddd;
}

/* ===== NUTRITION TAB ===== */
.nutrition-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.macro-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.macro-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.macro-label {
  display: block;
  color: #aaa;
  margin-top: 5px;
}

.macro-target {
  color: #666;
  font-size: 0.85rem;
}

.meals-section {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.meals-section h3 {
  margin-bottom: 15px;
}

.meals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meal-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.meal-calories {
  font-weight: bold;
  color: #667eea;
}

.meal-macros {
  color: #888;
  font-size: 0.9rem;
}

.empty-message {
  color: #666;
  text-align: center;
  padding: 20px;
}

/* ===== WEIGHT TAB ===== */
.weight-input-section {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.weight-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.weight-input-group input {
  flex: 1;
  max-width: 200px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
}

.input-unit {
  color: #aaa;
}

.weight-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.weight-stat {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.weight-stat .stat-label {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 5px;
}

.weight-stat .stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.highlight-green {
  color: #4caf50 !important;
}

/* ===== STATS TAB ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stats-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
}

.stats-card h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-item:last-child {
  border-bottom: none;
}

/* ===== CHARTS ===== */
.chart-section {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.chart-section h3 {
  margin-bottom: 15px;
}

.chart-section canvas {
  max-height: 300px;
}

/* ===== HISTORY ===== */
.history-section {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 20px;
}

.history-section h3 {
  margin-bottom: 15px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

/* ===== WORKOUT SCREENS ===== */
.workout-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.countdown-container,
.rest-container,
.summary-container {
  text-align: center;
}

.big-timer {
  font-size: 8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 30px 0;
}

.btn-primary {
  padding: 15px 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  margin: 10px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Workout layout */
.workout-layout {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
}

#stickman-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  min-height: 350px;
}

#stickman-canvas {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.exercise-panel {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.current-exercise {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.current-exercise h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.exercise-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: #aaa;
}

.timer-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.workout-timer {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.rep-counter {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #667eea;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-control {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-danger {
  background: rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.5);
}

/* Progress */
.progress-container {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

.exercise-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.exercise-item {
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.exercise-item.done {
  background: rgba(102, 126, 234, 0.5);
}

.exercise-item.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Summary */
.summary-stats {
  display: flex;
  gap: 40px;
  margin: 30px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #aaa;
  margin-top: 5px;
}

/* ===== WORKOUT MODE (TV / FULLSCREEN) ===== */
body.workout-mode {
  overflow: hidden;
}

body.workout-mode .sidebar {
  display: none !important;
}

body.workout-mode .main-content {
  margin-left: 0 !important;
  padding: 0 !important;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.workout-mode .tab-header {
  display: none !important;
}

body.workout-mode #tab-workout {
  height: 100vh;
  padding: 0;
}

body.workout-mode .workout-screen {
  height: 100vh;
  min-height: 100vh;
  padding: 20px;
}

/* Workout Mode - Active Exercise Screen */
body.workout-mode #workout-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
}

body.workout-mode .workout-mode-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* Top Bar - Exercise Name + Series */
.workout-mode-header {
  flex-shrink: 0;
  text-align: center;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.4);
}

.workout-mode-header .header-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 10px;
}

.workout-mode-header .exercise-title {
  font-size: 3.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.workout-mode-header .exercise-countdown {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  background: rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #667eea;
  animation: pulse-countdown 1s ease-in-out infinite;
}

@keyframes pulse-countdown {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.workout-mode-header .exercise-info {
  font-size: 2rem;
  color: #aaa;
}

.workout-mode-header .exercise-info span {
  margin: 0 20px;
}

.exercise-progress-bar {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 15px auto 0;
  overflow: hidden;
}

.exercise-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s linear;
}

/* Center - Stickman (80% of screen) */
.workout-mode-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 10px;
}

body.workout-mode #stickman-container {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  background: transparent;
}

body.workout-mode #stickman-canvas {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* Bottom Bar - Timer + Progress + Controls */
.workout-mode-footer {
  flex-shrink: 0;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.workout-mode-timer {
  text-align: center;
}

.workout-mode-timer .big-workout-timer {
  font-size: 6rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.workout-mode-progress {
  display: flex;
  align-items: center;
  gap: 20px;
}

.workout-mode-progress .progress-bar {
  flex: 1;
  height: 12px;
  margin-bottom: 0;
}

.workout-mode-progress .progress-text {
  font-size: 1.5rem;
  color: #aaa;
  min-width: 100px;
  text-align: right;
}

.workout-mode-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.workout-mode-controls .btn-control {
  padding: 15px 40px;
  font-size: 1.3rem;
  min-width: 150px;
}

/* Workout Mode - Rest Screen */
body.workout-mode #rest-screen .rest-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

body.workout-mode #rest-screen h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

body.workout-mode #rest-screen .big-timer {
  font-size: 12rem;
}

body.workout-mode #rest-screen p {
  font-size: 2.5rem;
  color: #aaa;
  margin: 30px 0;
}

body.workout-mode #rest-screen .btn-secondary {
  font-size: 1.5rem;
  padding: 20px 50px;
}

/* Workout Mode - Countdown Screen */
body.workout-mode #countdown-screen .countdown-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

body.workout-mode #countdown-screen h2 {
  font-size: 4rem;
}

body.workout-mode #countdown-screen .big-timer {
  font-size: 15rem;
}

body.workout-mode #countdown-screen p {
  font-size: 2rem;
  color: #aaa;
}

body.workout-mode #countdown-screen .btn-primary,
body.workout-mode #countdown-screen .btn-secondary {
  font-size: 1.5rem;
  padding: 20px 50px;
  margin: 15px;
}

/* Workout Mode - Summary Screen */
body.workout-mode #summary-screen .summary-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

body.workout-mode #summary-screen h2 {
  font-size: 5rem;
  margin-bottom: 30px;
}

body.workout-mode #summary-screen .summary-stats {
  gap: 80px;
  margin: 50px 0;
}

body.workout-mode #summary-screen .stat-value {
  font-size: 5rem;
}

body.workout-mode #summary-screen .stat-label {
  font-size: 1.8rem;
}

body.workout-mode #summary-screen #summary-message {
  font-size: 2.5rem;
  margin: 30px 0;
}

body.workout-mode #summary-screen .btn-primary {
  font-size: 1.8rem;
  padding: 25px 60px;
}

/* Workout History - hide in workout mode */
body.workout-mode #workout-history {
  display: none !important;
}

/* Stickman Fallback (when WebGL is not available) */
.stickman-fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  text-align: center;
}

.stickman-fallback .stickman-emoji {
  font-size: 15rem;
  animation: bounce 1s ease-in-out infinite;
}

.stickman-fallback .stickman-text {
  font-size: 1.5rem;
  color: #aaa;
  margin-top: 20px;
}

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

body.workout-mode .stickman-fallback .stickman-emoji {
  font-size: 20rem;
}

body.workout-mode .stickman-fallback .stickman-text {
  font-size: 2rem;
}

/* Voice Recognition Feedback */
.voice-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(102, 126, 234, 0.95);
  color: #fff;
  padding: 30px 60px;
  border-radius: 20px;
  font-size: 3rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
}

.voice-feedback.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Voice indicator */
.voice-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1rem;
  color: #aaa;
  z-index: 100;
}

.voice-indicator.active {
  color: #4caf50;
}

.voice-indicator .mic-icon {
  font-size: 1.5rem;
}

.voice-indicator.active .mic-icon {
  animation: mic-pulse 1.5s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

body.workout-mode .voice-indicator {
  bottom: auto;
  top: 20px;
  left: 20px;
}

/* Selectors */
.week-selector,
.period-selector {
  background: rgba(255,255,255,0.1);
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  color: #fff;
  cursor: pointer;
}

.week-selector option,
.period-selector option {
  background: #1a1a2e;
}

/* ===== WIP PLACEHOLDERS ===== */
.wip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-align: center;
}

.wip-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.wip-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 8px;
}

.wip-subtext {
  color: #888;
  font-size: 0.9rem;
}

/* WIP Modal */
.wip-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.wip-modal.show {
  display: flex;
}

.wip-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.wip-modal-content .wip-icon {
  font-size: 4rem;
}

.wip-modal-content h3 {
  margin: 15px 0;
  font-size: 1.5rem;
}

.wip-modal-content p {
  color: #aaa;
  margin-bottom: 20px;
}

.wip-modal-close {
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}

.wip-modal-close:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    width: 60px;
    padding: 10px 0;
  }
  
  .sidebar-header h2,
  .nav-link span,
  .btn-logout {
    display: none;
  }
  
  .nav-link {
    text-align: center;
    padding: 15px 10px;
  }
  
  .main-content {
    margin-left: 60px;
    padding: 20px;
  }
  
  .workout-layout {
    flex-direction: column;
  }
  
  .exercise-panel {
    width: 100%;
  }
  
  .nutrition-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .summary-stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .nutrition-summary {
    grid-template-columns: 1fr 1fr;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .big-timer {
    font-size: 5rem;
  }
}

/* ===== WORKOUT MODE RESPONSIVE ===== */
@media (max-width: 900px) {
  body.workout-mode .workout-mode-header .exercise-title {
    font-size: 2.5rem;
  }
  
  body.workout-mode .workout-mode-header .exercise-info {
    font-size: 1.5rem;
  }
  
  body.workout-mode .workout-mode-timer .big-workout-timer {
    font-size: 4rem;
  }
  
  body.workout-mode .workout-mode-controls .btn-control {
    padding: 12px 25px;
    font-size: 1.1rem;
    min-width: 120px;
  }
  
  body.workout-mode #rest-screen .big-timer {
    font-size: 8rem;
  }
  
  body.workout-mode #countdown-screen .big-timer {
    font-size: 10rem;
  }
}

@media (max-width: 600px) {
  body.workout-mode .workout-mode-header {
    padding: 15px 20px;
  }
  
  body.workout-mode .workout-mode-header .exercise-title {
    font-size: 2rem;
  }
  
  body.workout-mode .workout-mode-header .exercise-info {
    font-size: 1.2rem;
  }
  
  body.workout-mode .workout-mode-header .exercise-info span {
    margin: 0 10px;
  }
  
  body.workout-mode .workout-mode-footer {
    padding: 15px 20px;
    gap: 10px;
  }
  
  body.workout-mode .workout-mode-timer .big-workout-timer {
    font-size: 3rem;
  }
  
  body.workout-mode .workout-mode-progress .progress-text {
    font-size: 1.2rem;
    min-width: 70px;
  }
  
  body.workout-mode .workout-mode-controls {
    gap: 10px;
  }
  
  body.workout-mode .workout-mode-controls .btn-control {
    padding: 10px 15px;
    font-size: 1rem;
    min-width: 90px;
  }
  
  body.workout-mode #rest-screen h2 {
    font-size: 2.5rem;
  }
  
  body.workout-mode #rest-screen .big-timer {
    font-size: 6rem;
  }
  
  body.workout-mode #rest-screen p {
    font-size: 1.5rem;
  }
  
  body.workout-mode #countdown-screen h2 {
    font-size: 2.5rem;
  }
  
  body.workout-mode #countdown-screen .big-timer {
    font-size: 7rem;
  }
  
  body.workout-mode #summary-screen h2 {
    font-size: 3rem;
  }
  
  body.workout-mode #summary-screen .summary-stats {
    gap: 30px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  body.workout-mode #summary-screen .stat-value {
    font-size: 3rem;
  }
  
  body.workout-mode #summary-screen .stat-label {
    font-size: 1.2rem;
  }
}
