
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f72585;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.progress-entry-form {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--secondary);
}

#progressBarContainer {
  margin: 1.5rem 0;
  background: #f1f1f1;
  border-radius: 10px;
  height: 20px;
}

#progressBar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 10px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#progressText {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}


@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--dark);
  }
  
  .dashboard-card,
  .progress-entry-form {
    background: #2b2d42;
    color: var(--light);
  }

  .form-group input {
    background-color: #3a3b4a;
    color: white;
    border-color: #4a4b5a;
  }
}

.workout-progress {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.workout-progress h3 {
  margin-top: 0;
  color: var(--primary);
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.stat-card h4 {
  margin: 0 0 0.5rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

#completeWorkout {
  margin-top: 1rem;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .workout-progress {
    background: #2b2d42;
  }
  
  .stat-card {
    background: #3a3b4a;
  }
  
  .stat-card p {
    color: white;
  }
}
