/* ==========================================================================
   FITNESS COACH PORTAL SPECIFIC STYLES
   ========================================================================== */

/* --- Dash Tab Navigation --- */
.fitness-coach-tabs {
    border: none !important;
    border-bottom: none !important;
    background: var(--dash-card) !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 0.5rem 0.5rem 0 0.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--card-shadow) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
}

.fitness-coach-tab {
    padding: 12px 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fitness-coach-tab:hover {
    color: var(--text-main) !important;
    background: rgba(0,0,0,0.02) !important;
}

.fitness-coach-tab-selected {
    color: var(--accent-indigo) !important;
    background: var(--dash-bg) !important;
    border: none !important;
    border-bottom: 2px solid var(--accent-indigo) !important;
}

/* --- Per-chart Dropdown Styling --- */
.per-chart-dropdown .Select-control {
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: var(--dash-bg);
    height: 28px;
}

.per-chart-dropdown .Select-value {
    line-height: 28px !important;
    padding-left: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sub);
}

.per-chart-dropdown .Select-arrow {
    border-top-color: var(--text-muted);
}

/* --- Chart Card Padding Override --- */
.card-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Responsive Header layout for 3-device structure --- */

/* 1. Desktop (>= 1024px): Single Row Layout */
@media (min-width: 1024px) {
    .fitness-coach-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .fitness-coach-header .page-header-title-section {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    
    .fitness-coach-header .page-header-subtitle {
        margin: 0.35rem 0 0 3.25rem !important;
        white-space: normal !important;
    }
    
    .fitness-coach-header .page-header-actions-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-shrink: 0 !important;
    }
}

/* 2. Tablet (768px - 1023px): Two Row Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .fitness-coach-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }
    
    .fitness-coach-header .page-header-actions-section {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
}

/* 3. Mobile (< 768px): Vertical Stacked Layout */
@media (max-width: 767px) {
    .fitness-coach-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }
    
    .fitness-coach-header .page-header-actions-section {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .fitness-coach-header .premium-dropdown-pill {
        width: 100% !important;
    }
    
    .fitness-coach-header .sync-badge-container {
        justify-content: center !important;
    }
    
    .fitness-coach-header .btn-refresh-light {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Clear Filter Button (red, visible) --- */
.clear-filter-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 700;
}

.clear-filter-btn:hover {
    color: #FFFFFF;
    background: #EF4444;
    border-color: #EF4444;
}

