/* ==========================================================================
   RUNDRM TRAINING STYLE SHEET - PREMIUM GLASSMORPHISM THEME
   ========================================================================== */

/* --- VARIABLES / DESIGN SYSTEM --- */
:root {
    /* Color Palette */
    --bg-main: #323232;
    --bg-card: rgba(34, 34, 34, 0.9); /* #222222 with glassmorphism opacity */
    --bg-input: #323232;              /* stand out against cards */
    --primary: #e60000;               /* brand color */
    --primary-gradient: linear-gradient(135deg, #e60000 0%, #ff3b30 100%);
    --accent: #e60000;
    --border: #555555;                /* elementer farge */
    --border-hover: rgba(230, 0, 0, 0.6);
    
    /* Typography Colors */
    --text-light: #ffffff;            /* tekst farge */
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-title: #ffffff;
    
    /* Zone Colors & Soft Glows */
    --z1: #10b981;
    --z1-glow: rgba(16, 185, 129, 0.15);
    --z2: #059669;
    --z2-glow: rgba(5, 150, 105, 0.15);
    --z3: #f59e0b;
    --z3-glow: rgba(245, 158, 11, 0.15);
    --z4: #ea580c;
    --z4-glow: rgba(234, 88, 12, 0.15);
    --z5: #ef4444;
    --z5-glow: rgba(239, 68, 68, 0.15);
}

/* --- BASE STYLES --- */
.rundrm-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-light);
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, rgba(230, 0, 0, 0.12) 0%, rgba(34, 34, 34, 0) 60%),
                      radial-gradient(circle at 10% 80%, rgba(230, 0, 0, 0.06) 0%, rgba(34, 34, 34, 0) 50%);
    padding: 2rem 1rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.rundrm-wrapper * {
    box-sizing: border-box;
}

.rundrm-wrapper h2, .rundrm-wrapper h3, .rundrm-wrapper h4 { 
    color: var(--text-title) !important; 
    font-weight: 700; 
    letter-spacing: -0.025em; 
    margin-top: 0;
}

.rundrm-wrapper h2 { font-size: 2.25rem; }
.rundrm-wrapper h3 { font-size: 1.5rem; }
.rundrm-wrapper h4 { font-size: 1.125rem; }

.rundrm-wrapper p, .rundrm-wrapper label, .rundrm-wrapper span, .rundrm-wrapper div { 
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* --- WIZARD CARD & CONTAINERS --- */
.rundrm-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 100px rgba(230, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wizard-header h2 { 
    text-align: center; 
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container { 
    background: rgba(255, 255, 255, 0.03); 
    height: 8px; 
    border-radius: 4px; 
    margin-bottom: 2.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.progress-bar { 
    background: var(--primary-gradient); 
    height: 100%; 
    width: 25%; 
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 4px;
}

.step-indicators { 
    display: flex; 
    justify-content: space-between; 
    width: 220px; 
    margin: 0 auto 35px; 
    position: relative;
}

.step-dot { 
    width: 36px; 
    height: 36px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.step-dot.active { 
    background: var(--primary-gradient); 
    color: var(--primary-contrast, #ffffff); 
    border-color: transparent;
    box-shadow: 0 0 15px var(--primary-glow, rgba(230, 0, 0, 0.4));
}

.form-step { 
    display: none; 
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

.form-step.active { 
    display: block; 
}

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

.step-intro { 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    font-size: 1.05rem; 
    line-height: 1.6;
}

/* --- FORMS & INPUTS --- */
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
}

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

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    color: var(--text-title); 
    font-size: 0.95rem; 
    font-weight: 550; 
    letter-spacing: 0.2px;
}

.helper-text { 
    font-size: 0.825rem; 
    color: var(--text-muted); 
    margin-top: 6px; 
    display: block; 
}

.rundrm-form input, 
.rundrm-form textarea, 
.rundrm-form select {
    width: 100%; 
    padding: 14px 16px; 
    background: var(--bg-input); 
    border: 1px solid var(--border);
    border-radius: 10px; 
    color: #ffffff; 
    box-sizing: border-box; 
    font-family: inherit; 
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rundrm-form input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.rundrm-form input:focus,
.rundrm-form select:focus { 
    border-color: var(--primary); 
    outline: none; 
    box-shadow: 0 0 12px rgba(230, 0, 0, 0.25),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(34, 34, 34, 0.95);
}

/* Custom Select Dropdown Wrapper */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.rundrm-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* --- BUTTON RADIO CARDS --- */
.radio-cards-simple { 
    display: grid; 
    gap: 16px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.radio-cards-simple.col-2 { grid-template-columns: 1fr 1fr; }
.radio-cards-simple.col-1 { grid-template-columns: 1fr; }
.radio-cards { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px; 
}

.radio-card { 
    position: relative; 
    cursor: pointer; 
}
.radio-card input { 
    position: absolute; 
    opacity: 0; 
}

.card-content-simple {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    background: var(--bg-input); 
    border: 1px solid var(--border); 
    border-radius: 12px;
    padding: 20px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    text-align: center; 
    min-height: 80px;
}

.card-content-simple strong { 
    display: block; 
    font-size: 1.05rem; 
    color: #ffffff; 
    transition: color 0.2s ease;
}

.card-content-simple:hover,
.radio-card:hover .card-content {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.1);
}

.card-content { /* Distance cards */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 80px;
    background: var(--bg-input); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-content .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    transition: color 0.2s ease;
}

/* Checked states */
.radio-card input:checked + .card-content-simple,
.radio-card input:checked + .card-content {
    background: var(--primary-light, rgba(230, 0, 0, 0.15)); 
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow, rgba(230, 0, 0, 0.25));
}

.radio-card input:checked + .card-content-simple strong,
.radio-card input:checked + .card-content .card-title { 
    color: #ffffff;
}
.radio-card input:checked + .card-content-simple::after,
.radio-card input:checked + .card-content::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.85rem;
}

/* Radio Group Validation Error */
.radio-cards-simple.radio-error,
.radio-cards.radio-error {
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
    animation: shakeEffect 0.4s ease-in-out;
}

@keyframes shakeEffect {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* --- CHECKBOX ALIGNMENT --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.checkbox-group input {
    margin-top: 4px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-group label {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text-muted);
    cursor: pointer;
}

/* --- NAV / ACTION BUTTONS --- */
.step-actions { 
    margin-top: 35px; 
    display: flex; 
    justify-content: space-between; 
}
.step-actions.right { 
    justify-content: flex-end; 
}

.btn-next, 
.rundrm-submit-btn { 
    background: var(--primary-gradient); 
    color: var(--primary-contrast, #ffffff); 
    padding: 15px 36px; 
    border: none; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 1rem; 
    box-shadow: 0 4px 15px var(--primary-glow, rgba(230, 0, 0, 0.25));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-next:hover, 
.rundrm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow, rgba(230, 0, 0, 0.4));
    opacity: 0.95;
    color: var(--primary-contrast, #ffffff);
}

.btn-next:active,
.rundrm-submit-btn:active {
    transform: translateY(0);
}

.btn-prev { 
    background: transparent; 
    border: 1px solid var(--border); 
    color: #ffffff; 
    padding: 14px 28px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-prev:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-print { 
    background: var(--z1); 
    color: #ffffff; 
    padding: 14px 26px; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 600; 
    box-shadow: 0 4px 12px var(--z1-glow);
    transition: all 0.2s ease;
}
.btn-print:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-reset { 
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: var(--text-muted); 
    padding: 14px 26px; 
    border-radius: 10px; 
    cursor: pointer; 
    margin-left: 12px; 
    font-weight: 550;
    transition: all 0.2s ease;
}
.btn-reset:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* --- LOADING SPINNER --- */
#rundrm-loading {
    padding: 4rem 2rem;
    text-align: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(230, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- DASHBOARD HERO --- */
.rundrm-result-container {
    animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rundrm-dashboard { 
    background: var(--bg-card); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 3rem; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-hero { 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 2.5rem; 
    margin-bottom: 2.5rem; 
    text-align: center; 
}
.dashboard-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats { 
    display: flex; 
    justify-content: space-around; 
    gap: 20px;
}
.hero-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    flex: 1;
    transition: transform 0.3s ease;
}
.hero-stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(230, 0, 0, 0.2);
}
.stat-label { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    display: block; 
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.stat-value { 
    font-size: 2.25rem; 
    font-weight: 800; 
    color: var(--primary); 
    display: block; 
    line-height: 1;
}
.hero-stat:nth-child(2) .stat-value {
    background: linear-gradient(to right, #e60000, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-expl { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    display: block; 
    margin-top: 8px; 
}

/* --- TRAINING ZONES DISPLAY --- */
.section-title {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 14px;
    font-size: 1.6rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    height: 24px;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.zones-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); 
    gap: 16px; 
    margin-bottom: 3rem; 
}

.zone-box { 
    background: rgba(5, 8, 18, 0.4); 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Zone Glows on Hover */
.zone-box:hover {
    transform: translateY(-4px);
}
.zone-1:hover { border-color: var(--z1); box-shadow: 0 8px 24px var(--z1-glow); }
.zone-2:hover { border-color: var(--z2); box-shadow: 0 8px 24px var(--z2-glow); }
.zone-3:hover { border-color: var(--z3); box-shadow: 0 8px 24px var(--z3-glow); }
.zone-4:hover { border-color: var(--z4); box-shadow: 0 8px 24px var(--z4-glow); }
.zone-5:hover { border-color: var(--z5); box-shadow: 0 8px 24px var(--z5-glow); }

.zone-header { 
    padding: 16px; 
    color: #ffffff; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    text-align: center; 
    border-bottom: 1px solid var(--border); 
}
.zone-1 .zone-header { background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.02) 100%); }
.zone-2 .zone-header { background: linear-gradient(180deg, rgba(5, 150, 105, 0.2) 0%, rgba(5, 150, 105, 0.02) 100%); }
.zone-3 .zone-header { background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.02) 100%); }
.zone-4 .zone-header { background: linear-gradient(180deg, rgba(234, 88, 12, 0.2) 0%, rgba(234, 88, 12, 0.02) 100%); }
.zone-5 .zone-header { background: linear-gradient(180deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.02) 100%); }

.z-name { 
    font-weight: 700; 
    font-size: 1.1rem; 
    display: block; 
}
.z-sub { 
    font-size: 0.85rem; 
    color: var(--text-muted);
    display: block; 
    margin-bottom: 4px; 
}
.z-pct { 
    font-size: 0.8rem; 
    background: rgba(255, 255, 255, 0.06); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3px 10px; 
    border-radius: 20px; 
    display: inline-block; 
    margin: 0 auto; 
    width: fit-content; 
}

.zone-body { 
    padding: 20px; 
    font-size: 0.9rem; 
    flex-grow: 1; 
}
.zone-metric { 
    margin-bottom: 12px; 
    color: var(--text-light); 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.04); 
    padding-bottom: 6px; 
}
.zone-metric strong { 
    color: var(--text-muted); 
    font-weight: 500;
}
.zone-purpose { 
    color: var(--text-muted); 
    margin-top: 15px; 
    font-size: 0.825rem; 
    line-height: 1.5; 
}

/* --- ACCORDION DETAILS/SUMMARY --- */
.accordion-controls { 
    margin-bottom: 20px; 
    display: flex; 
    gap: 12px; 
}
.ctrl-btn { 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--text-light); 
    padding: 8px 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.825rem; 
    font-weight: 550;
    transition: all 0.2s ease;
}
.ctrl-btn:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.2);
}

.week-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.week-item { 
    background: rgba(5, 8, 18, 0.3); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.week-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.week-item[open] { 
    background: rgba(13, 20, 38, 0.4); 
    border-color: var(--primary-gradient);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.week-summary { 
    padding: 20px 24px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    list-style: none; 
    font-weight: 600; 
}

/* Hide default arrow icon */
.week-summary::-webkit-details-marker { display: none; }
.week-summary::marker { display: none; }

.week-left, .week-right { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}
.week-num { 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 1.1rem;
}
.week-phase {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.badge-rec { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--z1); 
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.725rem; 
    padding: 3px 10px; 
    border-radius: 6px; 
    text-transform: uppercase; 
    font-weight: 600;
    white-space: nowrap; 
}
.week-vol {
    font-size: 1.05rem;
    font-weight: 700;
}
.accordion-icon { 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}
.week-item[open] .accordion-icon { 
    transform: rotate(180deg); 
    color: #ffffff; 
}

/* Accordion Inside Content */
.week-content {
    border-top: 1px solid var(--border);
}

.session-row { 
    padding: 22px 24px; 
    border-bottom: 1px solid var(--border); 
}
.session-row:last-child { 
    border-bottom: none; 
}

.session-meta { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 10px; 
    align-items: center; 
    flex-wrap: wrap;
}
.s-num {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.s-type { 
    font-weight: 600; 
    color: #ffffff; 
    font-size: 1.05rem; 
}
.s-zone { 
    padding: 3px 9px; 
    border-radius: 6px; 
    color: #ffffff; 
    font-size: 0.75rem; 
    font-weight: 600; 
}
.badge-sone1 { background: var(--z1); } 
.badge-sone2 { background: var(--z2); } 
.badge-sone3 { background: var(--z3); color: #000; } 
.badge-sone4 { background: var(--z4); }
.badge-sone5 { background: var(--z5); }

.session-data { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap; 
    font-size: 0.875rem; 
    color: #ffffff; 
    margin-bottom: 12px; 
}
.s-item { 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 12px; 
    border-radius: 8px; 
}

.s-struct { 
    background: rgba(0, 0, 0, 0.4); 
    padding: 12px 16px; 
    border-left: 3px solid var(--primary); 
    color: #e2e8f0; 
    font-family: 'Poppins', monospace; 
    font-size: 0.9rem; 
    margin-bottom: 12px; 
    border-radius: 0 8px 8px 0;
    font-weight: 550;
    letter-spacing: 0.2px;
}
.s-note { 
    color: var(--text-muted); 
    margin: 0; 
    font-size: 0.875rem; 
    line-height: 1.5;
}

/* --- INPUT SUMMARY CARD --- */
.input-summary { 
    margin-top: 3.5rem; 
    padding: 24px; 
    background: rgba(255, 255, 255, 0.02); 
    border-radius: 16px; 
    text-align: center; 
    border: 1px dashed rgba(255, 255, 255, 0.1); 
}
.input-summary h4 { 
    margin-top: 0; 
    font-size: 1.05rem; 
    color: #ffffff; 
    margin-bottom: 8px; 
}
.input-summary p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin: 0; 
}
.input-summary strong { 
    color: var(--primary); 
    font-weight: 600; 
}

.actions-footer { 
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    margin-bottom: 2rem; 
    margin-top: 3rem; 
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 680px) {
    .rundrm-card, 
    .rundrm-dashboard { 
        padding: 2rem 1.5rem; 
        border-radius: 16px;
    }
    
    .rundrm-wrapper h2 { font-size: 1.75rem; }
    .rundrm-wrapper h3 { font-size: 1.3rem; }

    .form-grid { 
        grid-template-columns: 1fr; 
        gap: 16px;
    }
    
    .radio-cards { 
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
    }
    .radio-cards-simple.col-2 { 
        grid-template-columns: 1fr; 
        gap: 10px;
    }

    .hero-stats { 
        flex-direction: column;
        gap: 12px; 
    }
    .hero-stat {
        padding: 16px;
    }
    .stat-value { 
        font-size: 1.75rem; 
    }

    .week-summary {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: start;
        padding: 16px;
    }
    .week-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .badge-rec {
        margin-top: 4px;
    }
    .week-right {
        align-items: flex-end;
        justify-content: flex-end;
        height: 100%;
        padding-top: 4px;
    }

    .session-row {
        padding: 16px;
    }
    .session-data {
        gap: 8px;
    }
    .s-item {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .actions-footer {
        flex-direction: column;
        gap: 12px;
        margin-top: 2rem;
    }
    .btn-print, 
    .btn-reset {
        width: 100%;
        margin-left: 0;
        text-align: center;
        padding: 16px;
    }
}

/* --- BEGINNER EXPLANATION BOX --- */
.soner-explanation-box {
    background: rgba(13, 20, 38, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.soner-explanation-box:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(230, 0, 0, 0.05);
}

.explanation-toggle {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.95rem;
    color: var(--text-light);
    user-select: none;
    transition: background 0.2s ease;
}
.explanation-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}
.explanation-toggle strong {
    color: var(--primary);
}
.explanation-toggle::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.soner-explanation-box.open .explanation-toggle::after {
    transform: rotate(180deg);
    color: #ffffff;
}

.explanation-content {
    padding: 26px 28px;
    border-top: 1px solid var(--border);
    background: rgba(5, 8, 18, 0.25);
    animation: explanationSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes explanationSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}

.zone-metric.zone-rpe {
    display: block !important;
    text-align: left;
    line-height: 1.4;
    color: #fbd38d !important; /* Soft warm coach highlight */
    border-bottom: 1px dashed rgba(251, 211, 141, 0.15);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.zone-metric.zone-rpe strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: rgba(251, 211, 141, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explanation-col h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}
.explanation-col p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}
.explanation-col ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.explanation-col li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.explanation-col li strong {
    color: #ffffff;
}

.explanation-footer-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(230, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
}
.explanation-footer-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}
.explanation-footer-note strong {
    color: var(--primary);
}

@media (max-width: 680px) {
    .explanation-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .explanation-content {
        padding: 20px;
    }
    .soner-explanation-box {
        margin-bottom: 2rem;
    }
}

/* --- PHILOSOPHY SELECTION STYLES --- */
.philosophy-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.5rem;
}

.philosophy-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem !important;
    display: block !important;
    position: relative;
}

.philosophy-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.philosophy-card input[type="radio"] {
    display: none;
}

/* Selected state */
.philosophy-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.1);
}

.card-content-philosophy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.philosophy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.philosophy-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.philosophy-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-threshold { background: rgba(230, 0, 0, 0.15); color: #ff4d4d; border: 1px solid rgba(230, 0, 0, 0.3); }
.badge-balanced { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.3); }
.badge-polarized { background: rgba(155, 89, 182, 0.15); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.3); }
.badge-daniels { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.3); }
.badge-base { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }

.philosophy-tagline {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.95;
    line-height: 1.5;
}

.philosophy-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.philosophy-details-toggle {
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
    transition: opacity 0.2s ease;
    margin-top: 4px;
    font-weight: 500;
}

.philosophy-details-toggle:hover {
    opacity: 0.8;
}

.philosophy-details-content {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 8px;
}

#philosophy-recommendation-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

#philosophy-recommendation-box strong {
    color: var(--primary);
}

/* --- DASHBOARD SUMMARY CARD --- */
.philosophy-summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.psc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.psc-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.psc-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
}

.psc-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psc-body p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.psc-body p strong {
    color: var(--text-light);
}

/* ==========================================================================
   PRINT CSS STYLING
   ========================================================================== */
@media print {
    /* Set page margins */
    @page {
        margin: 1.5cm 1.2cm;
    }

    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    /* Hide everything on the page except the dashboard container */
    body * { 
        visibility: hidden; 
    }
    
    .rundrm-dashboard, 
    .rundrm-dashboard * { 
        visibility: visible; 
    }
    
    .rundrm-dashboard { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        background: #ffffff !important; 
        color: #000000 !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Typography contrast enhancements */
    .rundrm-dashboard h2, .rundrm-dashboard h3, .rundrm-dashboard h4, .rundrm-dashboard strong, .rundrm-dashboard .s-type { 
        color: #000000 !important; 
    }
    .rundrm-dashboard p, .rundrm-dashboard span, .rundrm-dashboard div, .rundrm-dashboard .s-note { 
        color: #2d3748 !important; 
    }
    
    /* Hero Header */
    .dashboard-hero {
        border-bottom: 2px solid #1a202c !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    .hero-stats {
        gap: 15px !important;
    }
    .hero-stat {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .stat-value {
        color: #000000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        font-size: 1.75rem !important;
    }
    
    /* Zones Section - Prevent boxes from breaking */
    .zones-container {
        gap: 10px !important;
        margin-bottom: 2rem !important;
    }
    .zone-box { 
        background: #ffffff !important; 
        border: 1px solid #94a3b8 !important; 
        page-break-inside: avoid !important; 
        break-inside: avoid !important;
        box-shadow: none !important;
        border-radius: 10px !important;
    }
    .zone-header { 
        background: #f1f5f9 !important; 
        color: #000000 !important; 
        border-bottom: 1px solid #cbd5e1 !important; 
        padding: 10px !important;
    }
    .z-pct {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #94a3b8 !important;
    }
    .zone-body {
        padding: 12px !important;
    }
    .zone-metric {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
    }
    
    /* Hide non-printable widgets */
    .accordion-controls, 
    .actions-footer,
    .soner-explanation-box,
    #wpadminbar,
    .accordion-icon { 
        display: none !important; 
    }
    
    /* Force details/accordions to lay out fully visible in print */
    details, 
    .week-content { 
        display: block !important; 
        height: auto !important; 
    }
    
    /* Allow weeks to break gracefully across pages */
    .week-item { 
        border: 1px solid #cbd5e1 !important; 
        background: #ffffff !important; 
        margin-bottom: 20px !important; 
        box-shadow: none !important;
        border-radius: 12px !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }
    
    .week-summary { 
        background: #f8fafc !important; 
        border-bottom: 1px solid #cbd5e1 !important; 
        font-weight: bold;
        padding: 14px 20px !important;
    }
    
    /* PREVENT A TRAINING DAY FROM SPLITTING ACROSS PAGES */
    .session-row {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 16px 20px !important;
    }
    .session-row:last-child {
        border-bottom: none !important;
    }
    
    .badge-rec {
        border: 1px solid #059669 !important;
        color: #059669 !important;
        background: none !important;
    }
    .s-struct {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 4px solid #3498db !important;
        color: #000000 !important;
        padding: 10px 14px !important;
    }
    .s-item {
        background: none !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
    }
    .s-zone {
        background: none !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }
    
    .input-summary {
        background: #ffffff !important;
        border: 1px dashed #cbd5e1 !important;
        margin-top: 2rem !important;
        padding: 16px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}