/*
Theme Name: F3 Fysio Theme
Theme URI: https://f3fysio.nl
Author: Digidaad
Author URI: https://digidaad.nl
Description: Custom theme for F3 Fysio - Fit Food Focus health platform
Version: 1.2.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: f3-fysio
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */

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

:root {
    /* Brand Colors */
    --f3-dark-blue: #060f40;
    --f3-blue: #2b346a;
    --f3-light-blue: #2abdcb;
    --f3-main-color: #3bafbf;
    
    /* UI Colors */
    --f3-bg: #f5f6fa;
    --f3-white: #ffffff;
    --f3-gray: #6b7280;
    --f3-gray-light: #9ca3af;
    --f3-gray-lighter: #e5e7eb;
    
    /* Category Colors */
    --f3-fit-color: #8b5cf6;
    --f3-fit-gradient: linear-gradient(135deg, #a855f7, #8b5cf6);
    --f3-food-color: #22c55e;
    --f3-food-gradient: linear-gradient(135deg, #22c55e, #16a34a);
    --f3-focus-color: #2abdcb;
    --f3-focus-gradient: linear-gradient(135deg, #2abdcb, #3bafbf);
    
    /* Status Colors */
    --f3-green: #22c55e;
    --f3-green-light: #dcfce7;
    --f3-red: #ef4444;
    --f3-orange: #f59e0b;
    --f3-orange-light: #fef3c7;
    
    /* Effects */
    --f3-shadow: 0 4px 20px rgba(6, 15, 64, 0.08);
    --f3-shadow-hover: 0 12px 40px rgba(6, 15, 64, 0.12);
    --f3-radius: 16px;
    --f3-radius-small: 12px;
    --f3-radius-pill: 50px;
    --f3-border: 1px solid rgba(0, 0, 0, 0.06);
    
    /* Layout */
    --sidebar-width: 260px;
    --right-sidebar-width: 320px;
    --topbar-height: 80px;
    
    /* Typography */
    --f3-font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f3-font);
    background: var(--f3-bg);
    color: var(--f3-dark-blue);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   LAYOUT - 3 COLUMN DASHBOARD
   ========================================================================== */

.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
    min-height: 100vh;
}

.dashboard-layout.no-right-sidebar {
    grid-template-columns: var(--sidebar-width) 1fr;
}

/* Admin bar adjustment */
.admin-bar .dashboard-layout {
    min-height: calc(100vh - 32px);
}

.admin-bar .sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* ==========================================================================
   SIDEBAR (LEFT)
   ========================================================================== */

.sidebar {
    background: var(--f3-white);
    padding: 24px 0;
    border-right: var(--f3-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

/* Logo */
.site-logo {
    padding: 0 24px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

.logo-text span {
    color: var(--f3-light-blue);
}

/* Menu Sections */
.menu-section {
    margin-bottom: 24px;
}

.menu-label {
    padding: 0 24px;
    font-size: 11px;
    font-weight: 600;
    color: var(--f3-gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin: 2px 12px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--f3-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--f3-radius-small);
    transition: all 0.2s ease;
}

.menu-link:hover {
    background: var(--f3-bg);
    color: var(--f3-dark-blue);
}

.menu-link.active,
.menu-link.current-menu-item,
.current-menu-item .menu-link,
.menu-item.current-menu-item .menu-link {
    background: rgba(42, 189, 203, 0.1);
    color: var(--f3-light-blue);
    font-weight: 600;
}

.menu-link.active .menu-icon,
.current-menu-item .menu-link .menu-icon {
    color: var(--f3-light-blue);
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Logout special styling */
.menu-link.logout,
.menu-item.logout .menu-link {
    color: var(--f3-red);
}

.menu-link.logout:hover,
.menu-item.logout .menu-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--f3-red);
}

/* Locked menu items */
.menu-link.locked {
    opacity: 0.6;
    position: relative;
}

.menu-link.locked .menu-lock {
    font-size: 10px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-link.locked .menu-icon {
    margin-left: 16px;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.main-content {
    padding: 24px 32px;
    overflow-y: auto;
    min-height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--f3-white);
    padding: 12px 20px;
    border-radius: var(--f3-radius);
    box-shadow: var(--f3-shadow);
    width: 400px;
    max-width: 100%;
}

.search-box .search-icon {
    color: var(--f3-gray-light);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    width: 100%;
    color: var(--f3-dark-blue);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--f3-gray-light);
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    background: var(--f3-white);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--f3-shadow);
    color: var(--f3-gray);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: var(--f3-light-blue);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* User Profile Pill */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--f3-white);
    padding: 8px 16px 8px 8px;
    border-radius: var(--f3-radius-pill);
    box-shadow: var(--f3-shadow);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--f3-dark-blue);
}

/* Language Switcher Pill (topbar + login) */
.f3-lang-pill {
    display: flex;
    align-items: center;
    background: var(--f3-white);
    padding: 8px 16px;
    border-radius: var(--f3-radius-pill);
    box-shadow: var(--f3-shadow);
    margin-right: 12px;
}

.f3-lang-pill .trp-language-switcher {
    margin: 0;
}

.f3-lang-pill .trp-ls-shortcode-current-language,
.f3-lang-pill .trp-ls-shortcode-language {
    font-family: var(--f3-font);
    font-size: 14px;
    color: var(--f3-dark-blue);
}

.f3-login-lang {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.f3-login-lang .trp-language-switcher {
    margin: 0 auto;
}

.f3-login-lang .trp-ls-shortcode-current-language,
.f3-login-lang .trp-ls-shortcode-language {
    font-family: var(--f3-font);
    font-size: 14px;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-banner {
    background: linear-gradient(135deg, var(--f3-light-blue) 0%, var(--f3-main-color) 100%);
    border-radius: var(--f3-radius);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    max-width: 500px;
    line-height: 1.3;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--f3-dark-blue);
    color: white;
    padding: 14px 28px;
    border-radius: var(--f3-radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 15, 64, 0.3);
}

.hero-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   QUICK STATS (FIT/FOOD/FOCUS CARDS)
   ========================================================================== */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--f3-shadow);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--f3-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.fit {
    background: var(--f3-fit-gradient);
}

.stat-icon.food {
    background: var(--f3-food-gradient);
}

.stat-icon.focus {
    background: var(--f3-focus-gradient);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--f3-gray-light);
    margin-bottom: 2px;
}

.stat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

.stat-more {
    color: var(--f3-gray-light);
    cursor: pointer;
    padding: 4px;
}

.stat-more:hover {
    color: var(--f3-gray);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

.section-link {
    color: var(--f3-light-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-link:hover {
    opacity: 0.8;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn.prev {
    background: var(--f3-white);
    color: var(--f3-gray);
    box-shadow: var(--f3-shadow);
}

.nav-btn.prev:hover {
    color: var(--f3-dark-blue);
}

.nav-btn.next {
    background: var(--f3-light-blue);
    color: white;
}

.nav-btn.next:hover {
    background: var(--f3-main-color);
}

/* ==========================================================================
   PROGRAM CARDS
   ========================================================================== */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.program-card {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    overflow: hidden;
    box-shadow: var(--f3-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--f3-shadow-hover);
}

.program-image {
    height: 160px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    position: relative;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f3-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.program-favorite:hover {
    color: var(--f3-red);
}

.program-favorite svg {
    width: 16px;
    height: 16px;
}

.program-content {
    padding: 20px;
}

.program-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.program-category svg {
    width: 12px;
    height: 12px;
}

.program-category.fit {
    background: rgba(168, 85, 247, 0.1);
    color: var(--f3-fit-color);
}

.program-category.food {
    background: rgba(34, 197, 94, 0.1);
    color: var(--f3-food-color);
}

.program-category.focus {
    background: rgba(42, 189, 203, 0.1);
    color: var(--f3-light-blue);
}

.program-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin-bottom: 16px;
    line-height: 1.4;
}

.program-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    flex-shrink: 0;
}

.program-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.program-author-info {
    flex: 1;
    min-width: 0;
}

.program-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--f3-dark-blue);
}

.program-author-role {
    font-size: 11px;
    color: var(--f3-gray-light);
}

/* ==========================================================================
   ACTIVITY TABLE
   ========================================================================== */

.activity-section {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 24px;
    box-shadow: var(--f3-shadow);
    margin-bottom: 32px;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--f3-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0;
    border-bottom: var(--f3-border);
}

.activity-table td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    flex-shrink: 0;
}

.activity-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--f3-dark-blue);
}

.activity-date {
    font-size: 12px;
    color: var(--f3-gray-light);
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(42, 189, 203, 0.1);
    color: var(--f3-light-blue);
}

.activity-badge svg {
    width: 12px;
    height: 12px;
}

.activity-badge.fit {
    background: rgba(168, 85, 247, 0.1);
    color: var(--f3-fit-color);
}

.activity-badge.food {
    background: rgba(34, 197, 94, 0.1);
    color: var(--f3-food-color);
}

.activity-badge.focus {
    background: rgba(42, 189, 203, 0.1);
    color: var(--f3-focus-color);
}

.activity-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--f3-light-blue);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f3-light-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-action:hover {
    background: var(--f3-light-blue);
    color: white;
}

.activity-action svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RIGHT SIDEBAR
   ========================================================================== */

.right-sidebar {
    background: var(--f3-white);
    padding: 24px;
    border-left: var(--f3-border);
    overflow-y: auto;
}

/* Stats Card */
.stats-card {
    background: var(--f3-bg);
    border-radius: var(--f3-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    text-align: left;
}

.stats-more {
    color: var(--f3-gray-light);
    cursor: pointer;
}

/* Progress Ring */
.progress-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    fill: none;
    stroke-width: 12;
}

.progress-ring .bg {
    stroke: var(--f3-gray-lighter);
}

.progress-ring .progress {
    stroke: var(--f3-light-blue);
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

.greeting {
    font-size: 18px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin-bottom: 8px;
}

.greeting-sub {
    font-size: 13px;
    color: var(--f3-gray);
}

/* Chart Card */
.chart-card {
    background: var(--f3-bg);
    border-radius: var(--f3-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 8px;
    margin-top: 20px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    background: var(--f3-light-blue);
    border-radius: 6px 6px 0 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    min-height: 10px;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-label {
    font-size: 11px;
    color: var(--f3-gray-light);
}

/* Coaches Card */
.coaches-card {
    background: var(--f3-bg);
    border-radius: var(--f3-radius);
    padding: 24px;
}

.coaches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed var(--f3-gray-light);
    background: none;
    cursor: pointer;
    color: var(--f3-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-btn:hover {
    border-color: var(--f3-light-blue);
    color: var(--f3-light-blue);
}

.add-btn svg {
    width: 16px;
    height: 16px;
}

.coach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: var(--f3-border);
}

.coach-item:last-of-type {
    border-bottom: none;
}

.coach-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    flex-shrink: 0;
}

.coach-info {
    flex: 1;
    min-width: 0;
}

.coach-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--f3-dark-blue);
}

.coach-role {
    font-size: 12px;
    color: var(--f3-gray-light);
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--f3-white);
    border: var(--f3-border);
    border-radius: var(--f3-radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--f3-dark-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-btn:hover {
    border-color: var(--f3-light-blue);
    color: var(--f3-light-blue);
}

.follow-btn svg {
    width: 14px;
    height: 14px;
}

.see-all-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--f3-gray-lighter);
    border-radius: var(--f3-radius-small);
    color: var(--f3-gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.see-all-btn:hover {
    border-color: var(--f3-light-blue);
    color: var(--f3-light-blue);
}

/* ==========================================================================
   ADMIN NOTICE
   ========================================================================== */

.fff-admin-notice,
.admin-test-notice {
    background: linear-gradient(135deg, var(--f3-orange-light) 0%, #fde68a 100%);
    border: 1px solid var(--f3-orange);
    color: #92400e;
    padding: 14px 20px;
    border-radius: var(--f3-radius);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fff-admin-notice::before,
.admin-test-notice::before {
    content: '🔧';
}

/* ==========================================================================
   FFF PLUGIN OVERRIDES
   ========================================================================== */

/* Overview Page */
.fff-overview {
    max-width: 100%;
}

.fff-overview-header {
    text-align: center;
    margin-bottom: 40px;
}

.fff-overview-header h1 {
    font-family: var(--f3-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 8px;
}

.fff-overview-header p {
    color: var(--f3-gray);
    font-size: 16px;
    margin: 0;
}

.fff-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fff-program-card {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    box-shadow: var(--f3-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fff-program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--f3-shadow-hover);
}

.fff-program-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.fff-program-icon {
    width: 64px;
    height: 64px;
    background: var(--f3-light-blue);
    border-radius: var(--f3-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 32px;
}

.fff-program-info h3 {
    font-family: var(--f3-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 4px;
}

.fff-program-info p {
    color: var(--f3-gray);
    font-size: 14px;
    margin: 0;
}

.fff-program-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: var(--f3-border);
}

.fff-status-badge {
    padding: 6px 14px;
    border-radius: var(--f3-radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.fff-status-active {
    background: var(--f3-green-light);
    color: #166534;
}

.fff-status-locked {
    background: var(--f3-gray-lighter);
    color: var(--f3-gray);
}

.fff-arrow {
    font-size: 20px;
    color: var(--f3-light-blue);
}

/* Dashboard Styles */
.fff-dashboard {
    max-width: 100%;
    padding: 0;
    font-family: var(--f3-font);
}

.fff-dashboard-header {
    background: linear-gradient(135deg, var(--f3-light-blue) 0%, var(--f3-main-color) 100%);
    border-radius: var(--f3-radius);
    padding: 32px;
    margin-bottom: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.fff-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.fff-week-info {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.fff-week-badge,
.fff-day-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: var(--f3-radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.fff-week-theme {
    font-family: var(--f3-font);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.fff-week-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.fff-week-focus {
    font-size: 15px;
    margin: 0;
    opacity: 0.8;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* Week Selector */
.fff-week-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.fff-week-tile {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--f3-shadow);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.fff-week-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--f3-shadow-hover);
}

.fff-week-tile-num {
    font-family: var(--f3-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    display: block;
}

.fff-week-tile-label {
    font-size: 12px;
    color: var(--f3-gray);
    font-weight: 500;
    display: block;
}

.fff-week-current {
    background: var(--f3-light-blue);
}

.fff-week-current .fff-week-tile-num,
.fff-week-current .fff-week-tile-label {
    color: white;
}

.fff-week-completed {
    border: 2px solid var(--f3-green);
}

.fff-week-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Score Section */
.fff-score-section {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--f3-shadow);
}

.fff-score-section h3 {
    font-family: var(--f3-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 4px;
}

.fff-score-subtitle {
    color: var(--f3-gray);
    font-size: 14px;
    margin: 0 0 20px;
}

.fff-score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.fff-score-card {
    background: var(--f3-bg);
    border-radius: var(--f3-radius);
    padding: 20px;
    text-align: center;
}

.fff-score-fit {
    border-left: 4px solid var(--f3-fit-color);
}

.fff-score-food {
    border-left: 4px solid var(--f3-food-color);
}

.fff-score-focus {
    border-left: 4px solid var(--f3-focus-color);
}

.fff-score-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.fff-score-label {
    font-family: var(--f3-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--f3-dark-blue);
    margin-bottom: 8px;
}

.fff-score-value {
    font-family: var(--f3-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

/* Buttons */
.fff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--f3-radius-pill);
    font-family: var(--f3-font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.fff-btn-primary {
    background: var(--f3-dark-blue);
    color: white;
}

.fff-btn-primary:hover {
    background: var(--f3-blue);
    transform: translateY(-2px);
}

/* Modals */
.fff-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 15, 64, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.fff-modal-content {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.fff-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--f3-bg);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--f3-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fff-modal-close:hover {
    background: var(--f3-gray-lighter);
    color: var(--f3-dark-blue);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: var(--f3-white);
    border: none;
    border-radius: var(--f3-radius-small);
    box-shadow: var(--f3-shadow);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--f3-dark-blue);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.admin-bar .mobile-menu-toggle {
    top: 62px;
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu-toggle {
        top: 58px;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1400px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: var(--sidebar-width) 1fr;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .fff-week-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .fff-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width);
        z-index: 100;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .admin-bar .sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        padding: 80px 16px 24px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .top-actions {
        justify-content: flex-end;
    }
    
    .hero-banner {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .fff-score-cards {
        grid-template-columns: 1fr;
    }
    
    .fff-week-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .activity-table {
        font-size: 14px;
    }
    
    .activity-table th:nth-child(3),
    .activity-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .fff-week-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fff-week-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-profile .user-name {
        display: none;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .sidebar,
    .right-sidebar,
    .top-bar,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .dashboard-layout {
        display: block;
    }
    
    .main-content {
        padding: 0;
    }
}

/* ==========================================================================
   ADDITIONAL STYLES - LOGO & TOPBAR
   ========================================================================== */

/* Logo Image */
.site-logo {
    display: block;
    padding: 0 24px 32px;
}

.logo-image {
    max-width: 140px;
    height: auto;
}

/* Minimal Top Bar */
.top-bar-minimal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
}

.top-bar-spacer {
    flex: 1;
}

/* ==========================================================================
   6 WEEKS PROGRAM SPECIFIC STYLES
   ========================================================================== */

/* Hero Banner 6weeks variant */
.hero-banner-6weeks .hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* Weeks Section */
.weeks-section {
    margin-bottom: 40px;
}

.section-progress {
    font-size: 14px;
    color: var(--f3-gray);
    font-weight: 500;
}

/* Weeks Grid - 6 columns on desktop */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 24px;
}

/* Week Card */
.week-card {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--f3-shadow);
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.week-card:hover:not(.week-card-locked) {
    transform: translateY(-4px);
    box-shadow: var(--f3-shadow-hover);
}

.week-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.week-card-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--f3-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
}

.week-card-number svg {
    width: 24px;
    height: 24px;
}

.week-card-badge {
    background: var(--f3-light-blue);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--f3-radius-pill);
    text-transform: uppercase;
}

.week-card-content {
    flex: 1;
}

.week-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 4px;
}

.week-card-subtitle {
    font-size: 12px;
    color: var(--f3-gray);
    margin: 0;
}

.week-card-footer {
    margin-top: 12px;
}

.week-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.week-card-status svg {
    width: 14px;
    height: 14px;
}

.week-card-status.completed {
    color: var(--f3-green);
}

.week-card-status.current {
    color: var(--f3-light-blue);
}

.week-card-status.locked {
    color: var(--f3-gray-light);
}

/* Week Card States */
.week-card-current {
    background: linear-gradient(135deg, var(--f3-light-blue) 0%, var(--f3-main-color) 100%);
    color: white;
}

.week-card-current .week-card-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.week-card-current .week-card-title,
.week-card-current .week-card-subtitle {
    color: white;
}

.week-card-current .week-card-subtitle {
    opacity: 0.9;
}

.week-card-current .week-card-status {
    color: white;
}

.week-card-completed .week-card-number {
    background: var(--f3-green-light);
    color: var(--f3-green);
}

.week-card-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.week-card-locked .week-card-number {
    background: var(--f3-gray-lighter);
    color: var(--f3-gray-light);
}

/* Week Content Grid */
.week-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

/* Content Card */
.content-card {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 24px;
    box-shadow: var(--f3-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
}

.content-card-primary {
    background: linear-gradient(135deg, var(--f3-light-blue) 0%, var(--f3-main-color) 100%);
    color: white;
}

.content-card-icon {
    width: 48px;
    height: 48px;
    background: var(--f3-bg);
    border-radius: var(--f3-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f3-light-blue);
}

.content-card-icon svg {
    width: 24px;
    height: 24px;
}

.content-card-primary .content-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.content-card-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--f3-dark-blue);
}

.content-card-primary .content-card-info h3 {
    color: white;
}

.content-card-info p {
    font-size: 14px;
    color: var(--f3-gray);
    margin: 0;
}

.content-card-primary .content-card-info p {
    color: rgba(255, 255, 255, 0.8);
}

.content-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--f3-light-blue);
    text-decoration: none;
    margin-top: auto;
}

.content-card-btn svg {
    width: 16px;
    height: 16px;
}

.content-card-primary .content-card-btn {
    color: white;
}

/* Progress Bar */
.progress-overview-section {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 24px;
    box-shadow: var(--f3-shadow);
    margin-bottom: 32px;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-bar-track {
    height: 12px;
    background: var(--f3-gray-lighter);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--f3-light-blue), var(--f3-green));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: var(--f3-gray);
}

/* Right Sidebar - 6weeks specific */
.week-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.week-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--f3-white);
    border-radius: var(--f3-radius-small);
}

.week-progress-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--f3-gray-lighter);
    color: var(--f3-gray);
}

.week-progress-icon svg {
    width: 16px;
    height: 16px;
}

.week-progress-item.completed .week-progress-icon {
    background: var(--f3-green-light);
    color: var(--f3-green);
}

.week-progress-item.current .week-progress-icon {
    background: rgba(42, 189, 203, 0.1);
    color: var(--f3-light-blue);
}

.week-progress-info {
    flex: 1;
}

.week-progress-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--f3-dark-blue);
    display: block;
}

.week-progress-status {
    font-size: 12px;
    color: var(--f3-gray);
}

/* Tips Card */
.tip-content {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--f3-white);
    border-radius: var(--f3-radius-small);
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 14px;
    color: var(--f3-gray);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE - 6 WEEKS
   ========================================================================== */

@media (max-width: 1200px) {
    .weeks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .week-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .weeks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .week-content-grid {
        grid-template-columns: 1fr;
    }
    
    .week-card {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .weeks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .week-card {
        padding: 16px;
        min-height: 140px;
    }
    
    .week-card-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ==========================================================================
   SCORE SUMMARY IN SIDEBAR
   ========================================================================== */

.score-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--f3-white);
    border-radius: var(--f3-radius-small);
}

.score-item .score-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--f3-dark-blue);
}

.score-item .score-value {
    font-size: 18px;
    font-weight: 700;
}

.score-item.fit .score-value {
    color: var(--f3-fit-color);
}

.score-item.food .score-value {
    color: var(--f3-food-color);
}

.score-item.focus .score-value {
    color: var(--f3-focus-color);
}

/* Chart bar today highlight */
.chart-bar-wrapper.today .chart-bar {
    background: linear-gradient(180deg, var(--f3-light-blue), var(--f3-main-color));
}

.chart-bar-wrapper.today .chart-label {
    color: var(--f3-light-blue);
    font-weight: 600;
}

/* Empty state */
.empty-state {
    background: var(--f3-white);
    border-radius: var(--f3-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--f3-shadow);
}

.empty-state h2 {
    color: var(--f3-dark-blue);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--f3-gray);
    margin: 0;
}

/* ==========================================================================
   DASHBOARD PAGE STYLING
   ========================================================================== */

/* Welcome Section - Hero area */
.welcome-section {
    text-align: center;
    padding: 48px 40px;
    background: var(--f3-white);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--f3-light-blue), var(--f3-main-color), var(--f3-fit-color));
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 17px;
    color: var(--f3-gray);
    margin: 0;
}

/* Hero Banner on Dashboard */
.hero-banner {
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: hidden;
}

/* Programs section */
.programs-section {
    margin-top: 0;
}

.programs-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--f3-bg);
}

.programs-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.programs-section .section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--f3-main-color);
    border-radius: 2px;
}

/* Override fff-overview styling for dashboard */
.programs-section .fff-overview {
    background: transparent;
    padding: 0;
}

.programs-section .fff-overview-header {
    display: none; /* Hide plugin header since we have welcome section */
}

/* Program Cards Grid Enhancement - 4 columns */
.programs-section .fff-programs-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

/* Program cards - compact styling */
.programs-section .fff-program-card {
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .programs-section .fff-programs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .programs-section .fff-programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .programs-section .fff-programs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .welcome-section {
        padding: 32px 24px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   CONTENT OVERVIEW (Recipes, Articles, Inspiration)
   ========================================================================== */

.content-overview {
    padding: 0;
}

.content-header {
    text-align: center;
    padding: 40px;
    background: var(--f3-white);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--f3-light-blue), var(--f3-main-color));
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 8px 0;
}

.content-subtitle {
    font-size: 16px;
    color: var(--f3-gray);
    margin: 0;
}

/* Content Grid - 3-2-1 responsive */
.content-overview .content-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

@media (max-width: 1200px) {
    .content-overview .content-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .content-overview .content-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Content Card - Overview Pages */
.content-overview .content-card {
    background: var(--f3-white) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.content-overview .content-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.content-overview .content-card-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.content-overview .content-card-image {
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: var(--f3-bg) !important;
    flex-shrink: 0 !important;
}

.content-overview .content-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.content-overview .content-card:hover .content-card-image img {
    transform: scale(1.05) !important;
}

.content-overview .content-card-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color)) !important;
}

.content-overview .content-card-placeholder i {
    width: 48px !important;
    height: 48px !important;
    color: white !important;
    opacity: 0.8 !important;
}

.content-overview .content-card-body {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.content-overview .content-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--f3-dark-blue) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
}

.content-overview .content-card-excerpt {
    font-size: 14px !important;
    color: var(--f3-gray) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
}

.content-overview .content-card-date {
    display: block !important;
    font-size: 13px !important;
    color: var(--f3-gray-light) !important;
    margin-top: 12px !important;
}

/* Pagination */
.content-pagination {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.content-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--f3-white);
    border-radius: var(--f3-radius-small);
    color: var(--f3-dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.content-pagination .page-numbers:hover {
    background: var(--f3-light-blue);
    color: white;
}

.content-pagination .page-numbers.current {
    background: var(--f3-main-color);
    color: white;
}

/* ==========================================================================
   SINGLE CONTENT (Recipe, Article detail) - COMPLETE STYLING
   ========================================================================== */

/* Container */
article.single-post,
.single-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    background: var(--f3-white) !important;
    border-radius: 20px !important;
    padding: 48px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.single-header {
    margin-bottom: 32px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--f3-main-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--f3-bg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--f3-main-color);
    color: white;
}

.back-link i,
.back-link svg {
    width: 18px;
    height: 18px;
}

/* Title */
.single-title,
.post-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 24px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

/* Featured Image */
.single-featured-image,
.post-hero {
    border-radius: 16px;
    overflow: hidden;
    margin: 0 -48px 32px -48px;
}

.single-featured-image img,
.post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Meta */
.post-header {
    margin-bottom: 32px;
}

.post-categories {
    margin-bottom: 16px;
}

.post-categories a,
.program-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-meta,
.program-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--f3-bg);
    border-radius: 12px;
    margin-top: 20px;
}

.program-author-avatar img,
.program-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--f3-main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.program-author-name {
    font-weight: 600;
    color: var(--f3-dark-blue);
    font-size: 15px;
}

.program-author-role {
    font-size: 13px;
    color: var(--f3-gray);
    margin-top: 2px;
}

/* ==========================================================================
   POST CONTENT - TYPOGRAPHY & ELEMENTS
   ========================================================================== */

.single-body,
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

/* Headings */
.single-body h1,
.post-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 48px 0 20px 0;
    line-height: 1.3;
}

.single-body h2,
.post-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 40px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--f3-light-blue);
    line-height: 1.3;
}

.single-body h3,
.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--f3-dark-blue);
    margin: 32px 0 12px 0;
    line-height: 1.4;
}

.single-body h4,
.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--f3-dark-blue);
    margin: 24px 0 10px 0;
}

/* First heading after featured image */
.single-body h2:first-child,
.post-content h2:first-child,
.single-body h3:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

/* Paragraphs */
.single-body p,
.post-content p {
    margin-bottom: 20px;
    color: #374151;
}

/* Strong & Emphasis */
.single-body strong,
.post-content strong {
    font-weight: 600;
    color: var(--f3-dark-blue);
}

.single-body em,
.post-content em {
    font-style: italic;
    color: #4b5563;
}

/* Links */
.single-body a,
.post-content a {
    color: var(--f3-main-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.single-body a:hover,
.post-content a:hover {
    color: var(--f3-light-blue);
    border-bottom-color: var(--f3-light-blue);
}

/* Lists */
.single-body ul,
.post-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.single-body ul li,
.post-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-body ul li::before,
.post-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--f3-main-color);
    border-radius: 50%;
}

.single-body ol,
.post-content ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: item;
}

.single-body ol li,
.post-content ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    line-height: 1.7;
    counter-increment: item;
}

.single-body ol li::before,
.post-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--f3-main-color);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquotes */
.single-body blockquote,
.post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0fdfa, #e0f7fa);
    border-left: 4px solid var(--f3-main-color);
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--f3-dark-blue);
    line-height: 1.7;
}

.single-body blockquote p:last-child,
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.single-body img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-body figure,
.post-content figure {
    margin: 32px 0;
}

.single-body figcaption,
.post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--f3-gray);
    margin-top: 12px;
    font-style: italic;
}

/* Tables */
.single-body table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.single-body th,
.post-content th {
    background: var(--f3-dark-blue);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.single-body td,
.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.single-body tr:hover td,
.post-content tr:hover td {
    background: var(--f3-bg);
}

/* Code */
.single-body code,
.post-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #e11d48;
}

.single-body pre,
.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.single-body pre code,
.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Horizontal Rule */
.single-body hr,
.post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--f3-light-blue), var(--f3-main-color), var(--f3-light-blue));
    margin: 40px 0;
    border-radius: 3px;
}

/* Recipe Specific - Meta Info */
.single-body p:first-of-type,
.post-content > p:first-of-type {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.7;
}

/* Post Footer */
.single-footer,
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--f3-bg);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--f3-bg);
    color: var(--f3-gray);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: var(--f3-main-color);
    color: white;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--f3-dark-blue);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 15, 64, 0.2);
}

.btn-back:hover {
    background: var(--f3-main-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 175, 191, 0.3);
}

.btn-back i,
.btn-back svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 900px) {
    .single-post,
    .single-content {
        padding: 32px 24px;
        border-radius: 16px;
        margin: 0 -8px;
    }
    
    .single-featured-image,
    .post-hero {
        margin: 0 -24px 24px -24px;
        border-radius: 0;
    }
    
    .single-title,
    .post-title {
        font-size: 28px;
    }
    
    .single-body h2,
    .post-content h2 {
        font-size: 22px;
    }
}

/* Inspiration Content */
.inspiration-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--f3-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.inspiration-content h2,
.inspiration-content h3 {
    color: var(--f3-dark-blue);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--f3-light-blue);
}

.inspiration-content h2:first-child,
.inspiration-content h3:first-child {
    margin-top: 0;
}

.inspiration-content p {
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
}

.inspiration-content strong {
    color: var(--f3-dark-blue);
    font-weight: 600;
}

/* Week menu styling */
.inspiration-content br + strong,
.inspiration-content p > strong:first-child {
    display: inline-block;
    color: var(--f3-main-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Day headers in inspiration */
.inspiration-content h4 {
    color: var(--f3-dark-blue);
    font-weight: 600;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--f3-bg);
    border-radius: 8px;
    border-left: 4px solid var(--f3-main-color);
}

/* Links in inspiration */
.inspiration-content a {
    color: var(--f3-main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.inspiration-content a:hover {
    color: var(--f3-light-blue);
    text-decoration: underline;
}

/* Lists in inspiration */
.inspiration-content ul,
.inspiration-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.inspiration-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #374151;
}

/* Related Posts Section */
.related-posts {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 40px;
    background: var(--f3-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-posts .section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--f3-bg);
}

.related-posts .section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-posts .section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--f3-main-color);
    border-radius: 2px;
}

.related-posts .content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .related-posts {
        padding: 24px;
        margin: 32px -8px 0;
    }
    
    .related-posts .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SETTINGS PAGE
   ========================================================================== */

.settings-page {
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    text-align: center;
    padding: 40px;
    background: var(--f3-white);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.settings-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--f3-light-blue), var(--f3-main-color));
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 8px 0;
}

.settings-header p {
    color: var(--f3-gray);
    margin: 0;
    font-size: 16px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 24px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.settings-section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--f3-light-blue), var(--f3-main-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.settings-section-icon i,
.settings-section-icon svg {
    width: 24px;
    height: 24px;
}

.settings-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0;
}

/* Settings Card */
.settings-card {
    background: var(--f3-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--f3-bg);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-row:first-child {
    padding-top: 0;
}

.settings-label {
    font-size: 15px;
    color: var(--f3-gray);
    font-weight: 500;
}

.settings-value {
    font-size: 15px;
    color: var(--f3-dark-blue);
    font-weight: 600;
}

/* Subscriptions List */
.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-card {
    background: var(--f3-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 20px;
}

.subscription-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.subscription-icon i,
.subscription-icon svg {
    width: 28px;
    height: 28px;
}

.subscription-info {
    flex-grow: 1;
}

.subscription-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--f3-dark-blue);
    margin: 0 0 8px 0;
}

.subscription-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.subscription-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--f3-gray);
}

.subscription-date i,
.subscription-date svg {
    width: 16px;
    height: 16px;
    color: var(--f3-main-color);
}

.subscription-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge i,
.status-badge svg {
    width: 16px;
    height: 16px;
}

.status-active {
    background: var(--f3-green-light);
    color: var(--f3-green);
}

.status-expired {
    background: #fef2f2;
    color: #ef4444;
}

/* Empty Subscriptions */
.empty-subscriptions {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    width: 72px;
    height: 72px;
    background: var(--f3-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--f3-gray);
}

.empty-icon i,
.empty-icon svg {
    width: 36px;
    height: 36px;
}

.empty-subscriptions p {
    color: var(--f3-gray);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--f3-main-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--f3-light-blue);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .settings-header {
        padding: 32px 24px;
    }
    
    .subscription-card {
        flex-direction: column;
        text-align: center;
    }
    
    .subscription-meta {
        justify-content: center;
    }
    
    .subscription-info {
        width: 100%;
    }
}
