/* MyForge V2 - Official Brand Style (Dark Theme) */

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

:root {
    /* MyForge Brand Colors - Orange/Amber Theme from Logo */
    --primary: #f59e0b;        /* Vibrant amber/orange */
    --primary-dark: #d97706;   /* Deeper orange */
    --primary-light: #fbbf24;  /* Light amber */
    --accent: #67e8f9;         /* Cyan/turquoise accent */
    --bronze: #92400e;         /* Dark bronze/brown */
    --bronze-light: #b45309;   /* Medium bronze */
    
    /* Supporting Colors */
    --secondary: #10b981;      /* Success green */
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Dark Theme Base */
    --dark-bg: #0f172a;        /* Deep navy */
    --dark-card: #1e293b;      /* Slate card */
    --dark-hover: #334155;     /* Lighter slate */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Borders & Accents */
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(245, 158, 11, 0.3);
    
    /* Shadows & Glows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(245, 158, 11, 0.3);
    --glow-cyan: 0 0 15px rgba(103, 232, 249, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

/* Hero */
.hero, .hero-small {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-small {
    padding: 40px 20px 30px;
}

.hero h1, .hero-small h1 {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
}

.tagline {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Cards */
.login-card, .signup-card, .workout-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 176, 52, 0.25);
}

.login-card:hover, .signup-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.workout-card.today {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    border: none;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.workout-card.today::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.workout-card.empty {
    border: 2px dashed var(--border-hover);
    text-align: center;
    background: rgba(30, 41, 59, 0.3);
}

h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
}

button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    transition: all 0.3s;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Workout Items */
.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.duration {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.workout-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.workout-item:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.6);
}

.workout-item h4 {
    font-size: 16px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.workout-item p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--secondary);
    color: white;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.alert-info {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
}

.alert h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.alert p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Error/Success Messages */
.error, .success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--secondary);
    color: #6ee7b7;
}

/* Links */
.signup-link, .login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.signup-link a, .login-link a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-link a:hover, .login-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Features */
.features {
    display: grid;
    gap: 20px;
    margin-top: 60px;
}

.feature {
    background: rgba(30, 41, 59, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.feature h3 {
    margin-bottom: 8px;
    color: var(--primary-light);
}

.feature p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Trust Badges */
.trust-badges {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}

.trust-badges p {
    margin: 5px 0;
    font-size: 14px;
}

/* Welcome */
.welcome {
    margin-bottom: 30px;
}

.welcome h1 {
    font-size: 32px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome p {
    color: var(--text-muted);
}

/* Recent Workouts */
.recent-workouts {
    margin-top: 30px;
}

.recent-workouts h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Accent Highlights (Cyan touches) */
.duration::before,
.feature h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--accent);
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

/* Profile Page Styles */
.profile-header {
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-header p {
    color: var(--text-muted);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-section {
    background: rgba(30, 41, 59, 0.4);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

/* Range Slider */
.range-container {
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    cursor: pointer;
    border: none;
}

.range-value {
    margin-top: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

#frequency_hint {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* Radio Grid */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.progression-grid {
    grid-template-columns: 1fr;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.radio-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.radio-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.radio-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.progression-card .radio-content {
    text-align: left;
    padding: 25px;
}

.progression-card .radio-title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.badge-recommended {
    background: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.progression-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.progression-details small {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-content {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-content {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.checkbox-icon {
    font-size: 24px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Workout Display Styles */
.workout-header-section {
    text-align: center;
    margin-bottom: 30px;
}

.workout-header-section h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.program-explanation {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.program-explanation h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.program-explanation p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.program-explanation strong {
    color: var(--text-primary);
}

.workouts-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.workout-day-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
}

.workout-day-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.workout-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.workout-day-header h2 {
    font-size: 24px;
    margin: 0;
    color: var(--text-primary);
}

.workout-type {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.workout-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    color: var(--text-muted);
    font-size: 14px;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.exercise-item {
    display: flex;
    gap: 15px;
    background: rgba(15, 23, 42, 0.6);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.exercise-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.exercise-details {
    flex: 1;
}

.exercise-details h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.exercise-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.spec {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.spec-divider {
    color: var(--text-muted);
    font-size: 12px;
}

.spec-rest {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.form-cues {
    margin-top: 10px;
}

.form-cues summary {
    color: var(--primary-light);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.form-cues summary:hover {
    color: var(--primary);
}

.form-cues p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    padding-left: 20px;
}

.substitutes {
    margin-top: 8px;
}

.substitutes small {
    color: var(--text-muted);
    font-size: 12px;
}

.btn-workout {
    width: 100%;
    margin-top: 10px;
}

.regenerate-section {
    text-align: center;
    padding: 30px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1, .hero-small h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-section {
        padding: 20px;
    }
    
    .workout-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading animation (optional enhancement) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-primary:active {
    transform: translateY(0);
}
/* Workout logging layout fix */
.set-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.set-input {
    width: 80px;
}

.weight-input {
    width: 100px;
}

.bw-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Clean set row layout */
.set-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.set-number {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

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

.target-label {
    font-size: 12px;
    color: var(--text-muted);
}

.set-input {
    width: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
}

.weight-input {
    width: 100px;
}

.weight-note {
    font-size: 11px;
    color: #10b981;
}

.bw-group {
    justify-content: center;
}

.bw-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.rest-display {
    font-size: 16px;
    color: var(--text-muted);
}
.set-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.input-group.rest-group {
    margin-left: auto;
}

/* Pregnancy Mode Styles */
.pregnancy-section {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.toggle-container {
    margin-bottom: 1.5rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--primary);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(24px);
}

.toggle-text {
    font-weight: 500;
}

.pregnancy-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pregnancy-info {
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.pregnancy-info ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text-secondary);
}

.pregnancy-info li {
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}
/* Pregnancy Mode Theme - Baby Colors */
body.pregnancy-theme {
    --primary: #f472b6;
    --primary-dark: #ec4899;
    --bg-dark: #1a1625;
    --bg-card: #2d2640;
    --border-color: #4a3f5c;
}

body.pregnancy-theme .nav-logo {
    color: #f472b6;
}

body.pregnancy-theme .nav-links a.active,
body.pregnancy-theme .nav-links a:hover {
    color: #f472b6;
}

body.pregnancy-theme .stat-value,
body.pregnancy-theme .exercise-stat-value,
body.pregnancy-theme .pr-weight {
    color: #f472b6;
}

body.pregnancy-theme .bar {
    background: linear-gradient(to top, #f472b6, #7dd3fc);
}

body.pregnancy-theme .btn-primary,
body.pregnancy-theme .save-button {
    background: linear-gradient(135deg, #f472b6 0%, #7dd3fc 50%, #fde047 100%);
}

body.pregnancy-theme .radio-card input:checked + .radio-content,
body.pregnancy-theme .checkbox-card input:checked + .checkbox-content {
    border-color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
}

body.pregnancy-theme .toggle-label input:checked + .toggle-switch {
    background: #f472b6;
}

body.pregnancy-theme .pregnancy-info {
    background: rgba(125, 211, 252, 0.1);
    border-color: rgba(125, 211, 252, 0.3);
}

body.pregnancy-theme .workout-card {
    border-left: 4px solid #f472b6;
}

body.pregnancy-theme .exercise-number {
    background: linear-gradient(135deg, #f472b6 0%, #7dd3fc 100%);
}

body.pregnancy-theme .timer-display {
    color: #f472b6;
}

body.pregnancy-theme .timer-progress-bar {
    background: linear-gradient(135deg, #f472b6 0%, #7dd3fc 100%);
}

/* =============================================
   PREGNANCY NOTES DISPLAY - Add to style.css
   ============================================= */

/* Pregnancy Notes Accordion */
.pregnancy-notes {
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.pregnancy-notes summary {
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 6px;
    font-size: 13px;
    color: #f472b6;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.pregnancy-notes summary:hover {
    background: rgba(244, 114, 182, 0.15);
}

.pregnancy-notes[open] summary {
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

.pregnancy-notes-content {
    padding: 12px;
    background: rgba(244, 114, 182, 0.05);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    line-height: 1.5;
}

.pregnancy-notes-content p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
}

.pregnancy-notes-content p:last-child {
    margin-bottom: 0;
}

.pregnancy-notes-content .contraindication {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #fbbf24;
}

.pregnancy-notes-content .substitute {
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #7dd3fc;
}

/* Safety Badges */
.pregnancy-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.pregnancy-safe {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.pregnancy-modified {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.pregnancy-avoid {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Trimester indicator in exercise specs */
.trimester-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f472b6 0%, #7dd3fc 100%);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

/* Swap Notice */
.exercise-swap-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(125, 211, 252, 0.1) 100%);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: 6px;
    font-size: 12px;
}

.swap-icon {
    font-size: 14px;
}

.swap-text {
    color: #f472b6;
}

.swap-text strong {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: normal;
}

.swap-reason {
    flex-basis: 100%;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
    padding-left: 22px;
}

/* Substituted exercise highlight */
.exercise-item.was-substituted {
    border-left: 3px solid #f472b6;
}

.exercise-item.was-substituted .exercise-number {
    background: linear-gradient(135deg, #f472b6 0%, #7dd3fc 100%);
}

/* Swap log summary (optional - for debugging) */
.swap-log {
    background: rgba(244, 114, 182, 0.05);
    border: 1px dashed rgba(244, 114, 182, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
}

.swap-log-title {
    color: #f472b6;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swap-log-item {
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.swap-log-item::before {
    content: "→";
    position: absolute;
    left: 4px;
    color: #7dd3fc;
}

/* =============================================
   POSTPARTUM MODE THEME - Add to style.css
   ============================================= */

/* Postpartum Theme Colors */
body.postpartum-theme {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --bg-dark: #1a1520;
    --bg-card: #2d2535;
    --border-color: #4a3f55;
}

body.postpartum-theme .nav-logo {
    color: #a78bfa;
}

body.postpartum-theme .nav-links a.active,
body.postpartum-theme .nav-links a:hover {
    color: #a78bfa;
}

body.postpartum-theme .stat-value,
body.postpartum-theme .exercise-stat-value,
body.postpartum-theme .pr-weight {
    color: #a78bfa;
}

body.postpartum-theme .bar {
    background: linear-gradient(to top, #a78bfa, #f9a8d4);
}

body.postpartum-theme .btn-primary,
body.postpartum-theme .save-button {
    background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 50%, #fde68a 100%);
}

body.postpartum-theme .radio-card input:checked + .radio-content,
body.postpartum-theme .checkbox-card input:checked + .checkbox-content {
    border-color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

body.postpartum-theme .toggle-label input:checked + .toggle-switch {
    background: #a78bfa;
}

body.postpartum-theme .workout-card {
    border-left: 4px solid #a78bfa;
}

body.postpartum-theme .exercise-number {
    background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 100%);
}

body.postpartum-theme .timer-display {
    color: #a78bfa;
}

body.postpartum-theme .timer-progress-bar {
    background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 100%);
}

/* Postpartum Info Box */
.postpartum-info {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.postpartum-info h4 {
    color: #a78bfa;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.postpartum-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Phase Progress Display */
.phase-progress {
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.phase-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.phase-progress-title {
    color: #a78bfa;
    font-weight: 600;
    font-size: 14px;
}

.phase-progress-weeks {
    color: var(--text-muted);
    font-size: 12px;
}

.phase-progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.phase-segment {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(167, 139, 250, 0.2);
    transition: background 0.3s;
}

.phase-segment.active {
    background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 100%);
}

.phase-segment.completed {
    background: #22c55e;
}

.phase-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

/* Postpartum Notes Accordion */
.postpartum-notes {
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.postpartum-notes summary {
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 6px;
    font-size: 13px;
    color: #a78bfa;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.postpartum-notes summary:hover {
    background: rgba(167, 139, 250, 0.15);
}

.postpartum-notes[open] summary {
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

.postpartum-notes-content {
    padding: 12px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    line-height: 1.5;
}

.postpartum-notes-content p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
}

.postpartum-notes-content p:last-child {
    margin-bottom: 0;
}

.postpartum-notes-content .contraindication {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #fbbf24;
}

/* Postpartum Safety Badges */
.postpartum-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.postpartum-safe {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.postpartum-modified {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.postpartum-avoid {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Phase Indicator */
.phase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 100%);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

/* Medical Clearance Warning */
.clearance-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.clearance-warning-icon {
    font-size: 18px;
}

.clearance-warning-text {
    font-size: 13px;
    color: #fbbf24;
    line-height: 1.4;
}

.clearance-warning-text strong {
    display: block;
    margin-bottom: 4px;
}

/* Postpartum Mode Toggle Section */
.postpartum-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.postpartum-section h3 {
    color: #a78bfa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Birth Date Input */
.birth-date-group {
    margin-top: 15px;
}

.birth-date-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.birth-date-group input[type="date"] {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 14px;
}

/* Medical Clearance Checkbox */
.clearance-checkbox {
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.clearance-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #a78bfa;
}

.clearance-checkbox label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.clearance-checkbox label strong {
    color: var(--text-light);
}

/* =============================================
   WARM-UP & RAMP SETS DISPLAY - Add to style.css
   ============================================= */

/* Warm-up Section Container */
.warmup-section {
    margin: 12px 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 8px;
    border-left: 3px solid #fb923c;
}

/* Warm-up Header */
.warmup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.15);
}

.warmup-icon {
    font-size: 14px;
}

.warmup-title {
    font-size: 13px;
    font-weight: 600;
    color: #fb923c;
}

.warmup-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border-radius: 10px;
    font-weight: 500;
}

/* Warm-up Sets List */
.warmup-sets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warmup-set {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 13px;
}

.warmup-set-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}

.warmup-set-weight {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
}

.warmup-set-reps {
    color: var(--text-muted);
    min-width: 45px;
}

.warmup-set-note {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
    margin-left: auto;
}

/* Text-based warm-up (isolation exercises) */
.warmup-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.warmup-text .warmup-icon {
    color: #fbbf24;
}

/* Compact mode for smaller screens */
@media (max-width: 480px) {
    .warmup-set {
        flex-wrap: wrap;
    }
    
    .warmup-set-note {
        flex-basis: 100%;
        margin-left: 38px;
        margin-top: 4px;
    }
}

/* Working Sets Separator */
.working-sets-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.working-sets-header::before,
.working-sets-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Pregnancy/Postpartum mode adjustments */
.pregnancy-theme .warmup-section,
.postpartum-theme .warmup-section {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-color: rgba(244, 114, 182, 0.2);
    border-left-color: #f472b6;
}

.pregnancy-theme .warmup-title,
.pregnancy-theme .warmup-badge,
.postpartum-theme .warmup-title,
.postpartum-theme .warmup-badge {
    color: #f472b6;
}

.pregnancy-theme .warmup-set-num,
.postpartum-theme .warmup-set-num {
    background: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
}

/* Safety indicator for compounds */
.compound-safety-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: #22c55e;
}

.compound-safety-note::before {
    content: '🛡️';
}

/* =============================================
   EXERCISE DEMO MODAL - Add to style.css
   ============================================= */

/* Modal Overlay */
.exercise-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.exercise-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.exercise-modal {
    background: var(--card-bg, #1a1a2e);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.exercise-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.exercise-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* GIF Container */
.exercise-modal-gif {
    width: 100%;
    aspect-ratio: 1;
    background: #0d0d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.exercise-modal-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exercise-modal-gif .loading {
    color: var(--text-muted);
    font-size: 14px;
}

.exercise-modal-gif .no-demo {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Modal Body */
.exercise-modal-body {
    padding: 20px;
}

.exercise-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, white);
    margin: 0 0 16px 0;
}

/* Form Cues Section */
.exercise-modal-cues {
    margin-bottom: 16px;
}

.exercise-modal-cues-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary, #f59e0b);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exercise-modal-cue {
    font-size: 14px;
    color: var(--text-muted, #9ca3af);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Safety Note for Pregnancy/Postpartum */
.exercise-modal-safety {
    padding: 12px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: 8px;
    margin-top: 12px;
}

.exercise-modal-safety-title {
    font-size: 12px;
    font-weight: 600;
    color: #f472b6;
    margin-bottom: 4px;
}

.exercise-modal-safety-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Exercise Name - Make it Clickable */
.exercise-name-clickable {
    cursor: pointer;
    transition: color 0.2s;
}

.exercise-name-clickable:hover {
    color: var(--accent-primary, #f59e0b);
}

.exercise-name-clickable::after {
    content: ' 📺';
    font-size: 12px;
    opacity: 0.6;
}

/* No Demo Available State */
.exercise-name-no-demo {
    cursor: default;
}

.exercise-name-no-demo::after {
    content: '';
}
.warmup-exercise {
    border-left: 3px solid #22c55e;
    opacity: 0.85;
}

.warmup-label {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.warmup-exercise .exercise-details h3 {
    font-size: 14px;
}