/* 
   Style Sheet for Runpedia Redesign - Fhinix 2026 & iOS Mobile First
   Aesthetic: Warm White (#F5F3EE), Coral Red (#DC3546), Carbon Black (#0D0D0D), Warm Beige (#F0EBE0)
   System Typography: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, sans-serif
*/

:root {
    --fh-black: #0D0D0D;
    --fh-white: #F5F3EE;
    --fh-orange: #DC3546;
    --fh-orange-hover: #b92b3a;
    --fh-warm: #F0EBE0;
    --fh-muted: #888072;
    --fh-border: rgba(13, 13, 13, 0.08);
    --fh-green: #1D9E75;
    
    /* iOS native colors replicated */
    --ios-bg-system: #F2F2F7;
    --ios-bg-grouped: #FFFFFF;
    --ios-blue: #007AFF;
    --ios-gray: #8E8E93;
    --ios-light-gray: #E5E5EA;
    
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --transition-ios: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--fh-white);
    color: var(--fh-black);
    font-family: var(--font-system);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

/* ────────────────────────────────────────────────────────── */
/* Main App Wrapper (Responsive)                              */
/* ────────────────────────────────────────────────────────── */
#app-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--fh-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* Space for top header */
}


/* Home Indicator Pill at the bottom of iPhone */


/* Dynamic Island/Notch simulation */


/* iOS Status Bar (time, battery, signal) */




/* Responsive adjustment: on actual mobile screens, remove simulator frame */


/* ────────────────────────────────────────────────────────── */
/* Main App Wrapper (Responsive)                              */
/* ────────────────────────────────────────────────────────── */
#app-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--fh-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* Space for top header */
}


/* ────────────────────────────────────────────────────────── */
/* Main Header (Top Bar)                                      */
/* ────────────────────────────────────────────────────────── */
.main-header {
    height: 60px;
    background-color: var(--fh-white);
    border-bottom: 1px solid var(--fh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-btn {
    background: transparent;
    border: none;
    color: var(--fh-orange);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background var(--transition-ios);
}

.header-btn:active {
    background-color: rgba(220, 53, 70, 0.1);
}

.section-title-bar {
    padding: 16px 20px 8px;
    background-color: var(--fh-white);
}

.section-title-bar h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--fh-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--fh-white);
    border-right: 1px solid var(--fh-border);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--fh-border);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-item {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fh-black);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    gap: 12px;
}

.sidebar-item i {
    font-size: 20px;
    color: var(--fh-muted);
}

.sidebar-item.active {
    background-color: rgba(220, 53, 70, 0.08);
    color: var(--fh-orange);
    border-right: 4px solid var(--fh-orange);
}

.sidebar-item.active i {
    color: var(--fh-orange);
}

.backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}


/* ────────────────────────────────────────────────────────── */
/* Tab View Content Container                                 */
/* ────────────────────────────────────────────────────────── */
.ios-content-container {
    flex: 1;
    overflow-y: visible;
    background-color: var(--fh-white);
    padding: 0 16px 40px;
    scrollbar-width: none;
}

.ios-content-container::-webkit-scrollbar {
    display: none;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: iosFadeIn 0.25s ease-out;
}

@media (min-width: 768px) {
    .tab-content.active {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
    
    .ios-chat-container {
        grid-column: 1 / -1;
    }
}


@keyframes iosFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ────────────────────────────────────────────────────────── */
/* iOS Bottom Tab Bar                                         */
/* ────────────────────────────────────────────────────────── */
.ios-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background-color: var(--fh-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 12px; /* room for home indicator */
    z-index: 100;
    user-select: none;
}

.ios-tab-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(245, 243, 238, 0.45);
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
    transition: color 0.2s;
}

.ios-tab-item i {
    font-size: 18px;
}

.ios-tab-item:active {
    opacity: 0.7;
}

.ios-tab-item.active {
    color: var(--fh-orange);
}

/* ────────────────────────────────────────────────────────── */
/* iOS Elements: Cards, Lists, Forms                          */
/* ────────────────────────────────────────────────────────── */
.ios-card {
    background-color: var(--fh-warm);
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ios-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fh-black);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(13, 13, 13, 0.05);
    padding-bottom: 6px;
}

.ios-list-group {
    background-color: var(--fh-warm);
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ios-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fh-border);
}

.ios-list-row:last-child {
    border-bottom: none;
}

/* Form inputs iOS Style */
.ios-form-group {
    margin-bottom: 14px;
}

.ios-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fh-muted);
    margin-bottom: 5px;
    padding-left: 4px;
}

.ios-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.ios-input {
    width: 100%;
    background-color: rgba(13, 13, 13, 0.04);
    border: 1px solid var(--fh-border);
    border-radius: 10px;
    color: var(--fh-black);
    font-family: var(--font-system);
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.ios-input:focus {
    border-color: var(--fh-orange);
    background-color: rgba(255, 255, 255, 0.9);
}

.ios-input.has-unit {
    padding-right: 36px;
}

.ios-unit {
    position: absolute;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fh-muted);
    pointer-events: none;
}

/* Segmented Controls (iOS style) */
.ios-segmented {
    display: flex;
    background-color: rgba(13, 13, 13, 0.05);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 12px;
}

.ios-segment-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--fh-muted);
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.ios-segment-btn.active {
    background-color: #FFFFFF;
    color: var(--fh-black);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sliders iOS Style */
.ios-slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--fh-muted);
    margin-bottom: 4px;
}

.ios-slider-val {
    color: var(--fh-orange);
    font-weight: 700;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background-color: rgba(13, 13, 13, 0.08);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* iOS Primary Buttons */
.ios-btn-primary {
    background-color: var(--fh-orange);
    color: #FFFFFF;
    font-family: var(--font-system);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.ios-btn-primary:hover {
    background-color: var(--fh-orange-hover);
}

.ios-btn-primary:active {
    transform: scale(0.98);
}

.ios-btn-secondary {
    background-color: transparent;
    border: 1px solid var(--fh-orange);
    color: var(--fh-orange);
    font-family: var(--font-system);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ios-btn-secondary:active {
    background-color: rgba(220, 53, 70, 0.05);
}

/* ────────────────────────────────────────────────────────── */
/* Output UI Styles                                           */
/* ────────────────────────────────────────────────────────── */
.ios-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 16px;
    border: 1.5px dashed var(--fh-border);
    border-radius: 12px;
    color: var(--fh-muted);
}

.ios-results-placeholder i {
    font-size: 40px;
    color: var(--fh-muted);
    margin-bottom: 12px;
    opacity: 0.5;
}

.ios-results-placeholder p {
    font-size: 12px;
    line-height: 1.5;
}

.ios-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ios-metric-card {
    background-color: #FFFFFF;
    border: 1px solid var(--fh-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.ios-metric-card .lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fh-muted);
}

.ios-metric-card .val {
    font-size: 22px;
    font-weight: 800;
    color: var(--fh-orange);
    margin: 2px 0;
}

.ios-metric-card .unit {
    font-size: 10px;
    color: var(--fh-muted);
}

/* iOS Table Style */
.ios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--fh-border);
}

.ios-table th {
    background-color: rgba(13, 13, 13, 0.03);
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--fh-black);
    border-bottom: 1px solid var(--fh-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ios-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fh-border);
    color: var(--fh-black);
}

.ios-table tr:last-child td {
    border-bottom: none;
}

/* Pace Band preview (iOS widget style) */
.ios-pace-band {
    background-color: #FFFFFF;
    border: 2px solid var(--fh-black);
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    max-width: 220px;
    margin: 12px auto;
    font-family: var(--font-system);
}

.ios-pace-band-header {
    text-align: center;
    border-bottom: 1.5px solid var(--fh-black);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.ios-pace-band-header .brand {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
}

.ios-pace-band-header .goal {
    font-size: 9px;
    font-weight: bold;
    color: var(--fh-muted);
}

.ios-pace-band-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.ios-pace-band-row:last-child {
    border-bottom: none;
}

.ios-pace-band-row.highlight {
    font-weight: bold;
    border-bottom: 1px solid var(--fh-black);
    padding: 4px 0;
}

.ios-pace-band-row span {
    width: 33%;
    text-align: center;
}

.ios-pace-band-row span:first-child {
    text-align: left;
}

.ios-pace-band-row span:last-child {
    text-align: right;
}

/* ────────────────────────────────────────────────────────── */
/* iOS Bottom Sheet (Modal de Perfil)                         */
/* ────────────────────────────────────────────────────────── */
.backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-ios);
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.ios-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80%;
    background-color: var(--fh-white);
    border-radius: 20px 20px 0 0;
    z-index: 1200;
    transform: translateY(100%);
    transition: transform var(--transition-ios);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
}

.ios-bottom-sheet.active {
    transform: translateY(0);
}

/* The drag bar handle at top of sheet */
.ios-sheet-handle {
    width: 36px;
    height: 5px;
    background-color: rgba(13, 13, 13, 0.15);
    border-radius: 3px;
    margin: 10px auto 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.ios-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 40px;
}

.ios-sheet-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fh-black);
    margin-bottom: 16px;
    text-align: center;
}

/* ────────────────────────────────────────────────────────── */
/* Training Plan Calendar Cards (Mobile optimized)            */
/* ────────────────────────────────────────────────────────── */
.ios-week-card {
    background-color: var(--fh-warm);
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.ios-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(13, 13, 13, 0.05);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.ios-week-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fh-orange);
}

.ios-week-vol {
    font-size: 11px;
    font-weight: 600;
    color: var(--fh-muted);
}

.ios-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(13, 13, 13, 0.04);
}

.ios-day-row:last-child {
    border-bottom: none;
}

.ios-day-lbl {
    width: 36px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fh-black);
    background-color: rgba(13, 13, 13, 0.05);
    padding: 3px 6px;
    border-radius: 6px;
    text-align: center;
}

.ios-day-row.long .ios-day-lbl {
    background-color: var(--fh-orange);
    color: #FFFFFF;
}

.ios-day-row.quality .ios-day-lbl {
    background-color: var(--fh-black);
    color: var(--fh-white);
}

.ios-day-desc {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
    color: var(--fh-black);
}

/* ────────────────────────────────────────────────────────── */
/* Nutrition Cards                                            */
/* ────────────────────────────────────────────────────────── */
.ios-nutri-card {
    background-color: #FFFFFF;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ios-nutri-icon {
    font-size: 24px;
}

.ios-nutri-info .name {
    font-size: 12px;
    font-weight: bold;
    display: block;
    color: var(--fh-black);
}

.ios-nutri-info .qty {
    font-size: 16px;
    font-weight: 750;
    color: var(--fh-orange);
}

/* Warning Alerts */
.ios-alert {
    background-color: rgba(220, 53, 70, 0.08);
    border: 1px solid rgba(220, 53, 70, 0.2);
    border-radius: 10px;
    padding: 10px;
    font-size: 11px;
    color: var(--fh-black);
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ios-alert i {
    color: var(--fh-orange);
    font-size: 14px;
}

/* ────────────────────────────────────────────────────────── */
/* AI Coach Chat Interface                                    */
/* ────────────────────────────────────────────────────────── */
.ios-chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background-color: var(--fh-white);
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    overflow: hidden;
}

.ios-chat-header {
    background-color: var(--fh-warm);
    border-bottom: 1px solid var(--fh-border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-chat-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--fh-black);
    color: var(--fh-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.ios-chat-header-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--fh-black);
}

.ios-chat-header-info span {
    font-size: 10px;
    color: var(--fh-muted);
}

.ios-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message Bubbles iMessage-Style */
.ios-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.ios-msg.user {
    background-color: var(--fh-orange);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ios-msg.coach {
    background-color: var(--fh-warm);
    color: var(--fh-black);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Typification styles in markdown inside chat */
.ios-msg p {
    margin-bottom: 6px;
}
.ios-msg p:last-child {
    margin-bottom: 0;
}
.ios-msg ul {
    margin-left: 14px;
    margin-top: 4px;
}

.ios-chat-input-bar {
    border-top: 1px solid var(--fh-border);
    padding: 8px 12px;
    background-color: var(--fh-white);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ios-chat-input {
    flex: 1;
    background-color: rgba(13, 13, 13, 0.04);
    border: 1px solid var(--fh-border);
    border-radius: 20px;
    padding: 8px 14px;
    font-family: var(--font-system);
    font-size: 13px;
    color: var(--fh-black);
    outline: none;
}

.ios-chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--fh-orange);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
}

.ios-chat-send-btn:hover {
    background-color: var(--fh-orange-hover);
}

.ios-chat-send-btn:active {
    transform: scale(0.92);
}

.ios-chat-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 12px;
    background-color: var(--fh-white);
    border-top: 1px dashed var(--fh-border);
}

.ios-chat-chips::-webkit-scrollbar {
    display: none;
}

.ios-chip-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--fh-border);
    color: var(--fh-black);
    font-family: var(--font-system);
    font-size: 10.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ios-chip-btn:active {
    background-color: var(--fh-warm);
}

/* Print Overrides */
@media print {
    body {
    background-color: var(--fh-white);
    color: var(--fh-black);
    font-family: var(--font-system);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}
}

/* ────────────────────────────────────────────────────────── */
/* Main App Wrapper (Responsive)                              */
/* ────────────────────────────────────────────────────────── */
#app-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--fh-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* Space for top header */
}


/* Top Banner */
.top-banner {
    display: block;
    background-color: var(--fh-black);
    color: var(--fh-white);
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.main-header {
    top: 32px; /* Push below banner */
}
#app-wrapper {
    padding-top: 92px; /* Space for banner + header */
    padding-bottom: 80px; /* Space for bottom nav */
}

/* FAB */
.fab-coach {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--fh-orange);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(220, 53, 70, 0.4);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.fab-coach:active {
    transform: scale(0.9);
}

/* Bottom Nav Bar */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--fh-white);
    border-top: 1px solid var(--fh-border);
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .bottom-tab-bar {
        max-width: 1200px;
        margin: 0 auto;
    }
}
.bottom-tab-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--fh-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    transition: color 0.2s;
}
.bottom-tab-item i {
    font-size: 22px;
    margin-bottom: 2px;
}
.bottom-tab-item.active {
    color: var(--fh-orange);
}

/* Missing Plan Generator Styles */
.week-container {
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 12px;
}
.week-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 10px;
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
}
.week-title {
    color: var(--fh-orange);
    font-size: 14px;
    margin: 0;
}
.week-summary {
    font-size: 12px;
    color: var(--fh-muted);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day-header {
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--fh-black);
    background: rgba(0,0,0,0.03);
    padding: 4px 0;
    border-radius: 4px;
}
.calendar-day-card {
    background: #fafafa;
    border: 1px solid var(--fh-border);
    border-radius: 6px;
    padding: 6px;
    font-size: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 80px;
}
.calendar-day-card.long {
    background-color: var(--fh-orange);
    color: white;
}
.calendar-day-card.quality {
    background-color: var(--fh-black);
    color: white;
}
.calendar-day-card .day-num {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    opacity: 0.8;
}
.calendar-day-card .workout-desc {
    font-size: 9px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    .calendar-day-header {
        display: none;
    }
    .calendar-day-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-height: auto;
    }
    .calendar-day-card .day-num {
        width: 50px;
        margin-bottom: 0;
        margin-right: 10px;
    }
}
