/* iTrain — OLED Dark Theme
   Optimized for gym use: high contrast, battery-saving pure black */

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3B82F6;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e5e5;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === Header === */
header {
    margin-bottom: 24px;
}

.motivation-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 8px;
    line-height: 1.4;
}

/* === Cards === */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.card.skipped {
    opacity: 0.35;
}

.card.skipped .input-row,
.card.skipped .plate-visual,
.card.skipped .suggestion,
.card.skipped .safety-note,
.card.skipped .warmup-section,
.card.skipped .card-header,
.card.skipped .rpe-slider,
.card.skipped .weight-input,
.card.skipped .reps-btn,
.card.skipped .btn-done {
    pointer-events: none;
    opacity: 0.4;
}

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

.card-pattern {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #3B82F6;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.card-tempo {
    font-size: 0.7rem;
    color: #6B7280;
}

.card-video-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
    color: #e5e5e5;
}

/* === Inline Video Player === */
.video-container {
    margin-top: 10px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-unavailable {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #6B7280;
    background: #0a0a0a;
    border-radius: 8px;
    margin-top: 8px;
}

/* === Safety Note === */
.safety-note {
    background: #1C1917;
    border-left: 3px solid #F59E0B;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #FCD34D;
}

/* === Input Row === */
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.weight-input {
    width: 80px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e5e5e5;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.weight-input:focus {
    outline: none;
    border-color: #3B82F6;
}

.weight-unit {
    font-size: 0.85rem;
    color: #6B7280;
}

/* === RPE Slider === */
.rpe-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.rpe-label {
    font-size: 0.75rem;
    color: #6B7280;
    white-space: nowrap;
}

.rpe-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
}

.rpe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3B82F6;
    cursor: pointer;
}

.rpe-value {
    font-size: 1rem;
    font-weight: 700;
    color: #3B82F6;
    min-width: 24px;
    text-align: center;
}

/* Reps stepper */
.reps-row {
    gap: 8px;
}

.reps-label {
    font-size: 0.75rem;
    color: #6B7280;
    margin-right: 2px;
}

.reps-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e5e5e5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.reps-btn:hover {
    background: #2a2a2a;
    border-color: #555;
}

.reps-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10B981;
    min-width: 28px;
    text-align: center;
}

/* === Buttons === */
.btn-done {
    background: #166534;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}

.btn-done:hover {
    background: #15803d;
}

.btn-done.completed {
    background: #333;
    color: #6B7280;
}

.btn-primary {
    background: #3B82F6;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563EB;
}

/* === Flex Actions (Switch / Skip) === */
.flex-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid #1a1a1a;
    padding-top: 10px;
    margin-top: 10px;
}

.flex-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #6B7280;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 0;
}

.flex-btn:hover {
    color: #9CA3AF;
}

/* === Plate Visual === */
.plate-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 8px;
    padding: 6px 0;
}

.plate-side {
    display: flex;
    align-items: center;
    gap: 2px;
}

.plate-icon {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    min-width: 18px;
}

.plate-bar-center {
    font-size: 0.6rem;
    color: #6B7280;
    padding: 0 4px;
    white-space: nowrap;
}

.plate-bar-only {
    font-size: 0.75rem;
    color: #6B7280;
}

/* === Timer === */
.timer-bar {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #3B82F6;
}

.timer-label {
    font-size: 0.8rem;
    color: #6B7280;
}

.timer-btn {
    background: #1E3A5F;
    color: #60A5FA;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.timer-complete {
    color: #22C55E;
}

/* === Progress Bar === */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #222;
    border-radius: 2px;
    margin: 8px 0;
}

.progress-bar-fill {
    height: 100%;
    background: #3B82F6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === Suggestion Chip === */
.suggestion {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
}

.suggestion.increase {
    background: #14532d;
    color: #4ADE80;
}

.suggestion.maintain {
    background: #1E3A5F;
    color: #60A5FA;
}

.suggestion.deload {
    background: #7F1D1D;
    color: #FCA5A5;
}

/* === PR Alert === */
.pr-alert {
    background: #422006;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    color: #FCD34D;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #D1D5DB;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e5e5e5;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #3B82F6;
    width: 18px;
    height: 18px;
}

/* === Warm-Up Section === */
.warmup-section {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

.warmup-title {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.warmup-set {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 2px 0;
    color: #9CA3AF;
}

/* === Footer === */
footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

/* Footer action links row */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    background: #111;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

/* Custom App — blue/indigo */
.footer-link-custom {
    color: #818CF8;
    border-color: #1e2060;
    background: #0d0f2e;
}

.footer-link-custom:hover {
    color: #A5B4FC;
    border-color: #3730A3;
    background: #13154a;
}

/* Feature Videos — red/rose */
.footer-link-videos {
    color: #F87171;
    border-color: #5a1010;
    background: #1a0808;
}

.footer-link-videos:hover {
    color: #FCA5A5;
    border-color: #991B1B;
    background: #2a0e0e;
}

/* Coffee — amber/yellow */
.footer-link-coffee {
    color: #FBBF24;
    border-color: #3a2c00;
    background: #1a1200;
}

.footer-link-coffee:hover {
    color: #FDE68A;
    border-color: #78550a;
    background: #261a00;
}

/* Clear Data — muted red */
.footer-link-clear {
    color: #F87171;
    border-color: #3a0f0f;
    background: #140606;
}

.footer-link-clear:hover {
    color: #FCA5A5;
    border-color: #7F1D1D;
    background: #200b0b;
}

/* === Install Banner === */
#install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0d1f0d;
    border-bottom: 1px solid #1a3a1a;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: #a3c4a3;
    flex-wrap: wrap;
}

.install-banner-msg {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.install-banner-msg strong {
    color: #6ee86e;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-banner-btn {
    border: none;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
}

.install-banner-install {
    background: #166534;
    color: #bbf7d0;
}

.install-banner-install:hover {
    background: #15803d;
}

.install-banner-dismiss {
    background: transparent;
    color: #6b7280;
    padding: 5px 8px;
}

.install-banner-dismiss:hover {
    color: #9ca3af;
}

/* === Session Summary === */
.session-summary {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.session-summary h3 {
    color: #22C55E;
    margin-bottom: 8px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: #9CA3AF;
}

.summary-stat .value {
    color: #e5e5e5;
    font-weight: 600;
}

/* === History View === */
.history-entry {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.history-date {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 4px;
}

.history-exercise {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 2px 0;
}

/* === Consistency Heat Map === */
.heatmap-container {
    margin-top: 16px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap-cell.active {
    background: #166534;
}

.heatmap-cell.active::after {
    content: '✓';
    font-size: 0.55rem;
    color: #4ADE80;
    line-height: 1;
}

.heatmap-cell.today {
    border: 1px solid #3B82F6;
}

/* === Form Check (Camera Mirror) === */
.mirror-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}

.mirror-video {
    width: 100%;
    display: block;
    transform: scaleX(-1);
}

.mirror-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e5e5e5;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
}

/* === Utilities === */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }

/* ===========================================================================
   HOME PAGE
   =========================================================================== */

.home-page {
    padding-bottom: 24px;
}

/* Program hero card */
.program-hero {
    border: 1px solid #222;
    border-radius: 14px;
    padding: 18px 16px 14px;
    margin-bottom: 14px;
}

.program-hero-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.phase-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.program-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 2px;
}

.program-tagline {
    font-size: 0.82rem;
    color: #9CA3AF;
    line-height: 1.4;
    margin: 0;
}

/* Progress bar inside hero */
.program-progress-wrap {
    margin-top: 4px;
}

.program-progress-bar {
    width: 100%;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
}

.program-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.program-progress-label {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 5px;
}

/* CTA button */
.btn-cta {
    display: block;
    width: 100%;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    transition: filter 0.2s;
}

.btn-cta:hover {
    filter: brightness(1.1);
}

/* Generic home card */
.home-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.home-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280;
    margin-bottom: 10px;
}

/* Program description */
.program-description {
    font-size: 0.85rem;
    color: #9CA3AF;
    line-height: 1.55;
    margin-bottom: 12px;
}

.program-goals {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #D1D5DB;
    line-height: 1.4;
}

.goal-check {
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Protocol card */
.protocol-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.protocol-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.protocol-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4B5563;
    font-weight: 600;
}

.protocol-value {
    font-size: 0.8rem;
    color: #9CA3AF;
    line-height: 1.4;
}

/* Exercise chips */
.exercise-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exercise-chip {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Phase timeline */
.phase-timeline {
    display: flex;
    flex-direction: column;
}

.phase-timeline-node {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.phase-node-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 26px;
}

.phase-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B7280;
    flex-shrink: 0;
}

.phase-timeline-node.active .phase-dot {
    color: #fff;
    font-size: 0.8rem;
}

.phase-timeline-node.done .phase-dot {
    color: #9CA3AF;
}

.phase-line {
    width: 2px;
    height: 28px;
    background: #1a1a1a;
    margin: 3px 0;
}

.phase-line.done {
    background: #374151;
}

.phase-node-info {
    padding: 2px 0 24px;
}

.phase-node-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #9CA3AF;
    line-height: 1.3;
}

.phase-timeline-node.active .phase-node-name {
    color: #e5e5e5;
}

.phase-node-duration {
    font-size: 0.72rem;
    color: #4B5563;
    margin-top: 2px;
}

.phase-node-current {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
}

/* Program switch list */
.program-switch-card {}

.program-switch-hint {
    font-size: 0.78rem;
    color: #6B7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.program-switch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 11px 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s;
    width: 100%;
}

.program-switch-btn:hover {
    border-color: #444;
}

.psb-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.psb-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.psb-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1.2;
}

.psb-dur {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 2px;
}

.psb-active-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #1E3A5F;
    color: #60A5FA;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

.psb-arrow {
    font-size: 0.9rem;
    color: #4B5563;
    flex-shrink: 0;
}

/* === Nav Tabs === */
.nav-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.nav-tab {
    flex: 1;
    background: #111;
    border: 1px solid #222;
    color: #6B7280;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab.active {
    background: #1E3A5F;
    border-color: #3B82F6;
    color: #60A5FA;
}

/* === Dashboard === */
.dashboard {
    padding-bottom: 24px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.dash-stat {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3B82F6;
}

.dash-stat-label {
    font-size: 0.65rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* === Heatmap Additions === */
.heatmap-legend {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 4px;
}

.heatmap-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 4px;
}

.heatmap-day-labels span {
    font-size: 0.6rem;
    color: #4B5563;
    text-align: center;
}

.heatmap-cell.future {
    opacity: 0.15;
}

.heatmap-key {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === History Additions === */
.mood-badge {
    display: inline-block;
    font-size: 0.7rem;
    background: #1a1a1a;
    color: #9CA3AF;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.history-vol {
    font-size: 0.72rem;
    color: #6B7280;
    margin-top: 4px;
}

.empty-state {
    color: #6B7280;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 0;
}

/* === Session Notes Form === */
.session-notes-form {
    margin-top: 16px;
    border-top: 1px solid #1a1a1a;
    padding-top: 14px;
}

.notes-label {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 8px;
    font-weight: 500;
}

.mood-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #9CA3AF;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}

.mood-btn.selected {
    background: #1E3A5F;
    border-color: #3B82F6;
    color: #60A5FA;
}

.session-notes-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e5e5e5;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    resize: none;
    font-family: inherit;
    margin-bottom: 8px;
    display: block;
}

.session-notes-input:focus {
    outline: none;
    border-color: #3B82F6;
}

.btn-save-notes {
    background: #1E3A5F;
    color: #60A5FA;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-save-notes:disabled {
    background: #111;
    color: #4B5563;
    cursor: default;
}

/* === Session Export (Print / Email) === */
.session-export {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid #1a1a1a;
    padding-top: 14px;
}

.btn-export {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #9CA3AF;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-export:hover {
    border-color: #555;
    color: #e5e5e5;
}

/* === Recovery Tips === */
.recovery-section {
    margin-top: 16px;
    border-top: 1px solid #1a1a1a;
    padding-top: 14px;
}

.recovery-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B7280;
    font-weight: 600;
    margin-bottom: 8px;
}

.recovery-tip {
    font-size: 0.8rem;
    color: #9CA3AF;
    padding: 7px 10px;
    background: #0a0a0a;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 2px solid #22C55E;
    line-height: 1.45;
}

/* === Print Styles === */
@media print {
    * {
        background: white !important;
        color: black !important;
        border-color: #ddd !important;
        box-shadow: none !important;
    }

    nav.nav-tabs,
    #timer-bar,
    #workout-list,
    #finish-btn,
    .no-print,
    footer,
    #view-progress {
        display: none !important;
    }

    #session-complete {
        display: block !important;
    }

    body {
        max-width: none;
        padding: 0;
    }

    .session-summary {
        border: 1px solid #ccc !important;
        padding: 20px;
    }

    .session-summary h3 {
        color: #166534 !important;
        font-size: 1.2rem;
    }

    .summary-stat .value {
        font-weight: bold;
    }
}
