/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Wynfull Brand Colors */
    --navy-blue: #0E4DA4;
    --teal: #0E4DA4;
    --soft-gray: #F5F7FA;
    --accent-yellow: #F5C518;
    --white: #FFFFFF;

    /* Light Theme Variables */
    --wynfull-blue: #0E4DA4;
    --wynfull-blue-light: #1E5BB8;
    --wynfull-blue-dark: #0A3D85;
    --background-light: #F5F7FA;
    --background-primary: #FFFFFF;
    --text-primary: #0E4DA4;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --success-green: #0E4DA4;
    --warning-orange: #F5C518;
    --completed-resources: #f0fdf4;
    --error-red: #EF4444;
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(14, 77, 164, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(14, 77, 164, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(14, 77, 164, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --wynfull-blue: #10B981;
    --wynfull-blue-light: #3B82F6;
    --wynfull-blue-dark: #1E40AF;
    --background-light: #111827;
    --background-primary: #1F2937;
    --background-body: #1F2937;
    --background-card: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-light: #9CA3AF;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --completed-resources: #ccc;
    --error-red: #EF4444;
    --border-light: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --soft-gray: #374151;
    --white: #1F2937;
    --navy-blue: #10B981;
    --teal: #10B981;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--background-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.modal-header h1 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--soft-gray);
    color: var(--navy-blue);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    background: var(--soft-gray);
    color: var(--text-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    /*width: 280px;*/
    /*background: var(--white);*/
    /*border-right: 1px solid var(--border-light);*/
    /*position: fixed;*/
    /*height: 100vh;*/
    /*left: 0;*/
    /*top: 0;*/
    /*z-index: 1000;*/
    /*display: flex;*/
    /*flex-direction: column;*/

    width: 260px; /* Standard width */
    background: var(--background-primary);
    border-right: 1px solid var(--border-light);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;

}

.sidebar-overlay {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--wynfull-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wynfull-blue);
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(14, 77, 164, 0.05);
    color: var(--wynfull-blue);
}

.nav-item.active .nav-link {
    background-color: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
    border-right: 3px solid var(--wynfull-blue);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    /*flex: 1;*/
    /*margin-left: 265px;*/
    /*background-color: var(--background-light);*/

    flex: 1;
    margin-left: 260px; /* Match sidebar width */
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease-in-out;
}

.page-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (max-width: 797px) {
    .page-content {
        padding: 0.5rem;
    }
}

/* Top Header */
.top-header {
    background: var(--background-primary);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-height: 80px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Header Breadcrumb */
.header-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    position: relative;
    padding: 0.25rem 0.75rem;
    background: var(--background-light);
    border-radius: 20px;
    font-weight: 500;
}

/* Header Title Section */
.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Header User Info */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.user-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.welcome-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1;
}

.user-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.125rem;
}

.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
}

.header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.client-status {
    background: #10B981; /* Green for clients */
}

.coach-status {
    background: #3B82F6; /* Blue for coaches */
}

.admin-status {
    background: #8B5CF6; /* Purple for admins */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    position: relative;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.header-action-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* User Info Dropdown */
.header-user-info {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-user-info:hover {
    background: var(--background-secondary);
    border-color: var(--border-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:only-child {
    border-radius: 12px;
}

.dropdown-item:hover {
    background: var(--background-light);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-secondary);
}

.dropdown-item.logout-item {
    color: #EF4444;
}

.dropdown-item.logout-item i {
    color: #EF4444;
}

/* Responsive Header Styles */
@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
        min-height: 70px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-left {
        width: 100%;
    }
    
    .header-breadcrumb {
        display: none; /* Hide breadcrumb on mobile */
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
        gap: 1rem;
    }
    
    .header-user-info {
        justify-content: flex-end;
        padding: 0.5rem 0.75rem;
    }
    
    .user-welcome {
        align-items: flex-start;
        text-align: left;
    }
    
    .welcome-text {
        font-size: 0.75rem;
    }
    
    .user-name {
        font-size: 0.875rem;
    }
    
    .header-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .header-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Show mobile menu toggle on tablet and mobile */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .header-user-info {
        padding: 0.5rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .welcome-text {
        font-size: 0.7rem;
    }
    
    .header-user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        top: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999; /* Ensure it's above everything */
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: var(--background-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile menu toggle icon animation */
.mobile-menu-toggle i {
    transition: all 0.3s ease;
    transform-origin: center;
    display: inline-block;
}

.mobile-menu-toggle.active i {
    transform: rotate(180deg) scale(1.1);
}

/* Additional visual feedback when active */
.mobile-menu-toggle.active {
    background: var(--primary-color);
}

[data-theme="dark"] .mobile-menu-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dark mode support for mobile menu toggle */
[data-theme="dark"] .mobile-menu-toggle {
    background: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.menu-toggle {
    /*display: none;*/
    /*background: none;*/
    /*border: none;*/
    /*font-size: 1.25rem;*/
    /*color: var(--text-secondary);*/
    /*cursor: pointer;*/
    /*padding: 0.5rem;*/
    /*border-radius: 6px;*/

    display: none; /* Hidden on desktop */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001; /* Above sidebar */
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.menu-toggle:hover {
    background-color: var(--background-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.notifications:hover {
    background-color: var(--background-light);
}

.notifications i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--background-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* Content Wrapper */
.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

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

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.action-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--wynfull-blue);
    background: var(--white);
    color: var(--wynfull-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--wynfull-blue);
    color: var(--white);
}

.action-card.primary .action-btn {
    background: var(--white);
    color: var(--wynfull-blue);
    border-color: var(--white);
}

.action-card.primary .action-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.progress-section,
.activity-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.progress-section h2,
.activity-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Progress Card */
.progress-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.circular-progress {
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-fill {
    stroke-dasharray: 327;
    stroke-dashoffset: 105;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wynfull-blue);
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.progress-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wynfull-blue);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.activity-icon.chat {
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

.activity-icon.call {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.activity-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Page Headers */
.page-header {
    margin: 0 0 2rem 0;
    padding-top: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

@media screen and (max-width: 797px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* AI Assistant Styles */
.ai-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.ai-intro {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    background: var(--wynfull-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.ai-intro-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-intro-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Chat Container */
.chat-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wynfull-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.message-bubble {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 12px;
    max-width: 100%;
}

.message-bubble p {
    margin: 0;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.chat-input {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--background-light);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--wynfull-blue);
    background: var(--white);
}

.send-btn {
    padding: 0.875rem 1rem;
    background: var(--wynfull-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-btn:hover {
    background: var(--wynfull-blue-dark);
}

/* Coming Soon Placeholder */
.coming-soon {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
}

.coming-soon i {
    font-size: 3rem;
    color: var(--wynfull-blue);
    margin-bottom: 1rem;
}

.coming-soon h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Onboarding Styles */
.onboarding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.onboarding-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--wynfull-blue);
    color: var(--white);
}

.step.completed {
    background: #2EB67D;
    color: var(--white);
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-light);
    transition: background-color 0.3s ease;
}

.step-line.completed {
    background: #2EB67D;
}

.onboarding-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 3px;
    width: 16.67%;
    transition: width 0.3s ease;
}

.step-counter {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.onboarding-step {
    display: none;
    text-align: center;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.onboarding-step h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin: 1.5rem 0;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--teal);
}

.input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
}

.input-group input[type="number"] {
    padding-left: 2.5rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

label.other-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

label.other-option input[type="radio"] {
    margin-right: 0.5rem;
}

.other-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.radio-group label:hover, .checkbox-group label:hover {
    border-color: var(--teal);
    background: rgba(26, 188, 156, 0.05);
}

.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: #16a085;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

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

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.action-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--wynfull-blue);
    background: var(--white);
    color: var(--wynfull-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--wynfull-blue);
    color: var(--white);
}

.action-card.primary .action-btn {
    background: var(--white);
    color: var(--wynfull-blue);
    border-color: var(--white);
}

.action-card.primary .action-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    background: var(--teal);
}

.metric-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.metric-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.metric-change.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dashboard-sections.two-columns {
    grid-template-columns: 1fr;
}

/* Phase Progress Charts */
.phase-progress-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.phase-progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.phase-info {
    min-width: 150px;
}

.phase-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.phase-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.phase-bar {
    flex: 1;
    height: 8px;
    background: var(--background-gray);
    border-radius: 4px;
    overflow: hidden;
}

.phase-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.phase-percentage {
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Emergency Fund Thermometer */
.emergency-fund-thermometer {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.thermometer-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 300px;
}

.thermometer-scale {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 100%;
    padding: 0.5rem 0;
}

.scale-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scale-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

.scale-line {
    width: 10px;
    height: 1px;
    background: var(--border-medium);
}

.thermometer-tube {
    width: 40px;
    height: 100%;
    background: var(--background-gray);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.thermometer-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--success-green) 0%, var(--wynfull-teal) 100%);
    border-radius: 0 0 18px 18px;
    transition: height 0.8s ease;
}

.thermometer-info {
    text-align: center;
    margin-top: 1rem;
}

.thermometer-info h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.thermometer-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Error Message Styles */
.error-message {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideInDown 0.3s ease;
}

.error-message i {
    color: #DC2626;
}

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

/* Welcome Modal Styles */
.welcome-modal {
    max-width: 600px;
    max-height: 90vh;
    text-align: center;
    padding: 0;
    overflow-y: auto;
    background: white;
}

.welcome-header {
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: var(--text-primary);
    padding: 2rem;
    position: relative;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #10B981;
}

.welcome-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.welcome-header p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.welcome-content {
    padding: 2rem;
}

.welcome-summary {
    background: var(--background-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.welcome-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-align: center;
}

.summary-section {
    display: grid;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.summary-item span {
    color: var(--text-secondary);
    text-align: right;
    flex: 1;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 8px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.welcome-message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.welcome-actions {
    padding: 0 2rem 2rem 2rem;
}

.welcome-actions .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    gap: 0.5rem;
}

/* New Dashboard Layout Styles */
.dashboard-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.phase-status-card, .primary-goals-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.phase-status-card h2, .primary-goals-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

/* START: Dynamic Phase Chart Styles */
.phase-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-bar-container {
    display: flex;
    height: 120px;
    gap: 8px;
    align-items: flex-end;
}

.phase-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-width: 40px;

    /* START: This is the "down" state */
    height: 25%;
    opacity: 0.5;
    /* END: This is the "down" state */

    transition: height 0.4s ease, opacity 0.4s ease;
}

/* Keep the background colors */
.phase-bar.reset-rewire { background: #22D3EE; }
.phase-bar.take-control { background: #06B6D4; }
.phase-bar.grow-multiply { background: #10B981; }
.phase-bar.sustain-scale { background: #F59E0B; }

/* START: These are the "up" (active) states */
.phase-bar.reset-rewire.active {
    height: 60%;
    opacity: 1;
}
.phase-bar.take-control.active {
    height: 80%;
    opacity: 1;
}
.phase-bar.grow-multiply.active {
    height: 90%;
    opacity: 1;
}
.phase-bar.sustain-scale.active {
    height: 100%;
    opacity: 1;
}
/* END: These are the "up" (active) states */


.phase-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.phase-label {
    font-size: 0.875rem;
    font-weight: 500;

    /* START: Make labels default to inactive color */
    color: var(--text-light);
    text-align: center;
    flex-basis: 0;
    flex-grow: 1;
    /* END: Make labels default to inactive color */

    transition: color 0.4s ease;
}

/* START: Active label style */
.phase-label.active {
    color: var(--text-primary);
    font-weight: 700;
}
/* END: Active label style */

/* Primary Goals List */
.goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goals-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.goals-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.goals-list li:last-child {
    border-bottom: none;
}

/* Updated Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Individual Card Styles */
.confidence-card {
    text-align: center;
}

.confidence-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.confidence-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: conic-gradient(var(--success-green) 0deg, #E5E7EB 0deg);
    transition: background-image 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.confidence-progress::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
}

.confidence-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1;
}

.debt-progress-card {
    text-align: left;
}

.debt-status {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.debt-icon {
    background: var(--success-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.debt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.debt-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.debt-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
}

.debt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green), #10B981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.debt-subtitle {
font-size: 0.8rem;
color: var(--text-secondary);
font-weight: 400;
}

.knowledge-card {
    text-align: left;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}

.knowledge-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.knowledge-content {
    margin-top: 1rem;
}

.knowledge-level {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.knowledge-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.knowledge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.knowledge-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.knowledge-progress {
    margin: 0.25rem 0;
}

.knowledge-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.knowledge-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.emergency-fund-card {
    text-align: center;
}

.fund-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0;
}

.fund-progress {
    margin-top: 1rem;
}

.fund-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.fund-fill {
    height: 100%;
    background: #F59E0B;
    width: 25%;
    border-radius: 4px;
}

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

.investing-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.investing-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.investing-status {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.investing-progress {
    margin-top: 0.75rem;
}

.investing-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.investing-fill {
    height: 100%;
    background: #3B82F6;
    width: 15%;
    border-radius: 4px;
}


/* Current Plan Card Styles */
.plan-card.current {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
}

.current-badge {
    background: var(--primary-color) !important;
    color: white !important;
}

.current-plan-btn {
    background: #E2E8F0 !important;
    color: #64748B !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.current-plan-btn:hover {
    background: #E2E8F0 !important;
    transform: none !important;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ai-insights, .recent-activity {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.ai-insights h2, .recent-activity h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 188, 156, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--teal);
}

.insight-card i {
    color: var(--teal);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.insight-card p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 156, 0.1);
    color: var(--teal);
    font-size: 0.9rem;
}

.activity-item span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-item time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Resource Library Styles */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-light);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.resource-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.resource-type {
    background: rgba(26, 188, 156, 0.1);
    color: var(--teal);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.ai-recommendations {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.ai-recommendations h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.ai-recommendations p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(26, 188, 156, 0.05);
    border-radius: 8px;
}

.recommendation-item i {
    color: var(--teal);
    font-size: 0.9rem;
}

.recommendation-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* AI Chat Styles */
.ai-chat-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.quick-questions {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.quick-questions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.quick-question-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.quick-question-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.2s ease;
}

.quick-question-btn:hover {
    border-color: var(--teal);
    background: rgba(26, 188, 156, 0.05);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: var(--soft-gray);
    padding: 1rem;
    border-radius: 4px 12px 12px 12px;
}

.message-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.chat-input-container input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--teal);
}

.chat-input-container button {
    padding: 0.875rem 1rem;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-input-container button:hover {
    background: #16a085;
}

/* Coaching Styles */
.coaching-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.coaching-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.coaching-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--soft-gray);
}

.coach-info {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    overflow: hidden;
}

.coach-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.coach-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.coach-details p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.coach-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coach-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.coach-rating span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workshop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
}

.workshop-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.workshop-info p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.workshop-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.workshop-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.note-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.note-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.note-item p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Plans Styles */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.plan-card.featured {
    border-color: var(--teal);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--teal);
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Account Styles */
.account-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.account-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
}

.security-options, .notification-preferences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item, .notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--soft-gray);
}

.security-info, .notification-info {
    flex: 1;
}

.security-info h3, .notification-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.security-info p, .notification-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--teal);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.danger-zone {
    border-color: #ef4444 !important;
}

.danger-zone h2 {
    color: #ef4444 !important;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
}

.danger-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 0.25rem 0;
}

.danger-info p {
    color: #991b1b;
    margin: 0;
    font-size: 0.9rem;
}

.btn-danger {
    background: #ef4444;
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Notification Panel Styles */
.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-light);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--soft-gray);
}

.notification-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-notifications {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-notifications:hover {
    background: rgba(0, 0, 0, 0.1);
}

.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--soft-gray);
}

.notification-item.unread {
    background: rgba(26, 188, 156, 0.02);
    border-left: 4px solid var(--teal);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.notification-content p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.notification-content time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.header-action-btn.notification-btn {
    position: relative;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-action-btn.notification-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Additional notification styles */
.notification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.notification-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.notification-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #ef4444;
}

.notification-error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.notification-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--soft-gray);
}

.mark-all-read-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--brand-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mark-all-read-btn:hover {
    background: var(--brand-blue-dark);
}

.notification-unread-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 50%;
}

/* Dark mode support for notifications */
[data-theme="dark"] .notification-panel {
    background: var(--background-primary);
    border-left-color: var(--border-color);
}

[data-theme="dark"] .notification-header {
    background: var(--background-secondary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .notification-item {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--background-secondary);
}

/* Info Panel Styles */
.info-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border-light);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.info-panel.active {
    right: 0;
}

.info-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.info-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-info {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-info:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.info-content {
    padding: 1.5rem;
    line-height: 1.6;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-content ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-content li {
    margin-bottom: 0.5rem;
}

.info-highlight {
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.info-highlight strong {
    color: var(--primary-color);
}

/* Dark mode support for info panel */
[data-theme="dark"] .info-panel {
    background: var(--background-primary);
    border-left-color: var(--border-color);
}

[data-theme="dark"] .info-header {
    background: var(--background-secondary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .info-highlight {
    background: var(--background-secondary);
}

/* Mobile responsive styles for info panel */
@media (max-width: 768px) {
    .info-panel {
        width: 100%;
        right: -100%;
    }
    
    .info-panel.active {
        right: 0;
    }
    
    .info-header {
        padding: 1rem;
    }
    
    .info-content {
        padding: 1rem;
    }
    
    .info-content h4 {
        font-size: 1rem;
    }
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(26, 188, 156, 0.1);
}

[data-theme="dark"] .notification-footer {
    background: var(--background-secondary);
    border-top-color: var(--border-color);
}

.step-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.question-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--wynfull-blue);
    box-shadow: 0 0 0 3px rgba(14, 77, 164, 0.1);
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--wynfull-blue);
    box-shadow: 0 0 0 3px rgba(14, 77, 164, 0.1);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--wynfull-blue);
    background: rgba(14, 77, 164, 0.02);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input[type="radio"]:checked + .radio-custom,
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--wynfull-blue);
    background: var(--wynfull-blue);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.slider-group {
    position: relative;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.confidence-slider,
.stress-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 1rem;
}

.confidence-slider::-webkit-slider-thumb,
.stress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wynfull-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confidence-slider::-moz-range-thumb,
.stress-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wynfull-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stress-slider::-webkit-slider-thumb {
    background: var(--warning-orange);
}

.stress-slider::-moz-range-thumb {
    background: var(--warning-orange);
}

.slider-value {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wynfull-blue);
    background: rgba(14, 77, 164, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--wynfull-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--wynfull-blue-dark);
    transform: translateY(-1px);
}

.btn-danger {
    background: #DC2626;
    color: white;
    border: 1px solid #DC2626;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.action-btn.delete {
    background: #DC2626;
    color: white;
    border: 1px solid #DC2626;
}

.action-btn.delete:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: var(--background-light);
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--background-light);
}

.dropdown-item.danger {
    color: #DC2626;
}

.dropdown-item.danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

/* Logout button in dropdown */
.dropdown-item.logout-item {
    color: #DC2626;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item.logout-item:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.dropdown-item.logout-item i {
    width: 16px;
    text-align: center;
}

/* Theme Toggle Styles for Different Layouts */
.theme-toggle-auth {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-auth:hover {
    background: var(--wynfull-blue);
    color: white;
    transform: scale(1.05);
}

.theme-toggle-landing {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.theme-toggle-landing:hover {
    background: var(--wynfull-blue);
    color: white;
    transform: scale(1.05);
}

.theme-toggle-mobile {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
}

.theme-toggle-mobile:hover {
    background: var(--wynfull-blue);
    color: white;
}

.theme-toggle-guest {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.theme-toggle-guest:hover {
    background: var(--wynfull-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 77, 164, 0.3);
}

.theme-toggle-guest i {
    font-size: 1.1rem;
}

/* Dark mode styling for guest theme toggle */
[data-theme="dark"] .theme-toggle-guest {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle-guest:hover {
    background: var(--wynfull-blue);
    color: white;
}

/* Auth brand header positioning */
.auth-brand-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Logout Confirmation Modal */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.logout-modal {
    background: var(--background-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.logout-modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: none;
}

.logout-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.logout-modal-body {
    padding: 1rem 1.5rem;
}

.logout-modal-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.logout-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.logout-modal-footer button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.logout-modal-footer .btn-secondary {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.logout-modal-footer .btn-secondary:hover {
    background: var(--background-light);
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.logout-modal-footer .btn-danger {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.logout-modal-footer .btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--background-light);
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

/* Financial Profile Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.profile-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-welcome p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.confidence-card .card-icon {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.stress-card .card-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.goals-card .card-icon {
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

.experience-card .card-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confidence-score,
.stress-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.confidence-bar,
.stress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #2EB67D, #4ECDC4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.goal-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.goal-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.experience-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.budgeting {
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

.badge.saving {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card,
.progress-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.chart-header,
.progress-header {
    margin-bottom: 2rem;
}

.chart-header h3,
.progress-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chart-header p,
.progress-header p {
    color: var(--text-secondary);
    margin: 0;
}

.radar-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.current {
    background: var(--wynfull-blue);
}

.legend-color.target {
    background: #2EB67D;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.progress-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wynfull-blue);
}

.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.small {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wynfull-blue), #4ECDC4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.recommendations-section {
    margin-bottom: 2rem;
}

.recommendations-header {
    margin-bottom: 2rem;
}

.recommendations-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recommendations-header p {
    color: var(--text-secondary);
    margin: 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 4px solid;
}

.recommendation-card.priority-high {
    border-left-color: #FF6B6B;
}

.recommendation-card.priority-medium {
    border-left-color: #FFC107;
}

.recommendation-card.priority-low {
    border-left-color: #2EB67D;
}

.rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rec-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.priority-high .rec-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.priority-medium .rec-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.priority-low .rec-icon {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.rec-priority {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.priority-high .rec-priority {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.priority-medium .rec-priority {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.priority-low .rec-priority {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.recommendation-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.recommendation-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rec-actions {
    display: flex;
    gap: 0.75rem;
}

.rec-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rec-btn.primary {
    background: var(--wynfull-blue);
    color: var(--white);
}

.rec-btn.primary:hover {
    background: var(--wynfull-blue-dark);
    transform: translateY(-1px);
}

.rec-btn.secondary {
    background: var(--white);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.rec-btn.secondary:hover {
    background: var(--background-light);
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.habits-section {
    margin-bottom: 2rem;
}

.habits-header {
    margin-bottom: 2rem;
}

.habits-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.habits-header p {
    color: var(--text-secondary);
    margin: 0;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.habit-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
}

.habit-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.habit-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.habit-frequency {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.frequency-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.frequency-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.habit-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #FF6B6B;
    font-size: 0.9rem;
    font-weight: 600;
}

.habit-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.habit-progress span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-actions {
        align-self: stretch;
    }

    .chart-section {
        grid-template-columns: 1fr;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .habits-grid {
        grid-template-columns: 1fr;
    }
}

/* Resource Library Styles */
.resource-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.resource-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.resource-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.resource-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

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

.search-container i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 1;
}

.resource-search {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--background-light);
    width: 300px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.resource-search:focus {
    outline: none;
    border-color: var(--wynfull-blue);
    background: var(--white);
}

.filter-controls {
    display: flex;
    gap: 0.75rem;
}

.filter-dropdown {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--wynfull-blue);
}

/* Resource Tabs */
.resource-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.resource-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.resource-tab:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.resource-tab.active {
    background: var(--wynfull-blue);
    color: var(--white);
}

.resource-tab-content {
    display: none;
}

.resource-tab-content.active {
    display: block;
}

/* Learning Phases */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.phase-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
}

.phase-card:hover {
    box-shadow: var(--shadow-md);
}

.phase-card.current {
    border-color: var(--wynfull-blue);
    box-shadow: 0 0 0 1px rgba(14, 77, 164, 0.1);
}

.phase-card.locked {
    opacity: 0.7;
}

.phase-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phase-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
    flex-shrink: 0;
}

.phase-card.completed .phase-icon {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.phase-card.locked .phase-icon {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-light);
}

.phase-info {
    flex: 1;
}

.phase-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.phase-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.phase-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.phase-status.completed {
    background: rgba(46, 182, 125, 0.1);
    color: #2EB67D;
}

.phase-status.current {
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

.phase-status.locked {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-light);
}

.phase-progress {
    padding: 0 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

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

.phase-card.current .progress-fill {
    background: var(--wynfull-blue);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Phase Modules */
.phase-modules {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 2rem 2rem;
}

.phase-modules.locked {
    opacity: 0.6;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.module-item:last-child {
    border-bottom: none;
}

.module-item.current {
    background: rgba(14, 77, 164, 0.03);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--border-light);
}

.module-info {
    flex: 1;
}

.module-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.module-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.module-resources {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.resource-tag.guide {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.resource-tag.excel {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.resource-tag.video {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.module-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.module-btn:hover {
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.module-btn.primary {
    background: var(--wynfull-blue);
    color: var(--white);
    border-color: var(--wynfull-blue);
}

.module-btn.primary:hover {
    background: var(--wynfull-blue-dark);
}

.module-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-item.completed .module-info h4 {
    color: #2EB67D;
}

.module-item.locked {
    opacity: 0.6;
}

/* Tools & Templates */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-accent {
    height: 4px;
    background: var(--wynfull-blue);
}

.tool-card .tool-icon {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 2rem;
    color: var(--wynfull-blue);
}

.tool-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.tool-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tool-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tool-formats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.format-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.format-tag.excel {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.format-tag.pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.format-tag.word {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.tool-download-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--wynfull-blue);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tool-download-btn:hover {
    background: var(--wynfull-blue-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9998; /* Below mobile menu toggle */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open,
    .sidebar.mobile-active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        min-height: calc(100vh - 70px);
    }

    .menu-toggle {
        display: block;
    }
    
    /* Ensure mobile menu toggle is always visible on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        z-index: 9999 !important;
    }

    /* Dashboard Layout Improvements */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-top-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .progress-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    /* Card Responsive Improvements */
    .metric-card,
    .phase-status-card,
    .primary-goals-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .metric-card h3 {
        font-size: 0.85rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .resource-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .resource-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .resource-search {
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-dropdown {
        width: 100%;
    }

    .phase-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .phase-progress {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .module-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }

    .module-resources {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    /* Phase Chart Mobile Improvements */
    .phase-chart {
        padding: 1rem;
        overflow-x: auto;
    }

    .phase-bars {
        min-width: 300px;
        gap: 0.5rem;
    }

    .phase-bar {
        min-width: 60px;
    }

    .phase-labels {
        min-width: 300px;
        gap: 0.5rem;
    }

    .phase-label {
        min-width: 60px;
        font-size: 0.7rem;
    }

    /* Confidence Card Mobile */
    .confidence-circle {
        width: 60px;
        height: 60px;
    }

    .confidence-progress {
        width: 60px;
        height: 60px;
    }

    .confidence-progress::before {
        width: 45px;
        height: 45px;
    }

    .confidence-value {
        font-size: 1.2rem;
        line-height: 60px;
    }

    /* Goals List Mobile */
    .goals-list {
        gap: 0.75rem;
    }

    .goal-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Debt Journey Mobile */
    .debt-progress-bar {
        height: 6px;
    }

    .debt-amount {
        font-size: 1.2rem;
    }

    /* Investment Knowledge Mobile */
    .knowledge-level {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Emergency Fund Mobile */
    .fund-progress {
        height: 8px;
    }

    .fund-amount {
        font-size: 1.3rem;
    }

    /* Page Header Mobile */
    .page-header {
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Card Headers Mobile */
    .card-header-with-info h2,
    .card-header-with-info h3 {
        font-size: 1rem;
    }

    /* Info Indicators Mobile */
    .info-indicator {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

/* Coach Dashboard Mobile Responsiveness */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .client-card {
        padding: 1rem;
    }

    .client-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .client-header img {
        width: 60px;
        height: 60px;
    }

    .client-info h3 {
        font-size: 1rem;
    }

    .client-info p {
        font-size: 0.85rem;
    }

    .client-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        text-align: center;
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Admin Dashboard Mobile */
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-card {
        padding: 1rem;
    }

    .admin-metric-value {
        font-size: 1.5rem;
    }

    /* Coach Analytics Mobile */
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-container {
        height: 250px;
        padding: 1rem;
    }

    /* Schedule Mobile */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .appointment-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .appointment-time {
        font-size: 0.9rem;
    }

    .appointment-client {
        font-size: 1rem;
    }
}

/* Additional Mobile Styles for Smaller Screens */
@media (max-width: 480px) {
    .dashboard-grid {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .dashboard-top-section {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .metric-card,
    .phase-status-card,
    .primary-goals-card {
        padding: 0.75rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .metric-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .confidence-circle,
    .confidence-progress {
        width: 50px;
        height: 50px;
    }

    .confidence-progress::before {
        width: 38px;
        height: 38px;
    }

    .confidence-value {
        font-size: 1rem;
        line-height: 50px;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .phase-bar {
        min-width: 50px;
    }

    .phase-label {
        min-width: 50px;
        font-size: 0.65rem;
    }

    /* Client Cards Mobile */
    .client-card {
        padding: 0.75rem;
    }

    .client-header img {
        width: 50px;
        height: 50px;
    }

    .client-info h3 {
        font-size: 0.95rem;
    }

    .client-info p {
        font-size: 0.8rem;
    }

    .client-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Admin Cards Mobile */
    .admin-card {
        padding: 0.75rem;
    }

    .admin-metric-value {
        font-size: 1.25rem;
    }

    /* Chart Containers Mobile */
    .chart-container {
        height: 200px;
        padding: 0.75rem;
    }

    /* Appointment Cards Mobile */
    .appointment-card {
        padding: 0.75rem;
    }

    .appointment-time {
        font-size: 0.85rem;
    }

    .appointment-client {
        font-size: 0.95rem;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-top-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.mobile-coaches-toggle,
.mobile-clients-toggle {
    display: none;
}

/* Mobile Responsive Messaging */
@media (max-width: 768px) {
    /* Show and style mobile toggle on mobile devices */
    .mobile-coaches-toggle,
    .mobile-clients-toggle {
        display: block !important;
        position: absolute;
        top: 1rem;
        left: 1rem;
        background: var(--primary-color);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }

    .mobile-coaches-toggle:hover,
    .mobile-clients-toggle:hover {
        background: var(--primary-color-dark, #0a3d8a);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-coaches-toggle:active,
    .mobile-clients-toggle:active {
        transform: translateY(0);
    }
    
    .coach-messaging-container,
    .messaging-container {
        height: calc(100vh - 140px);
        border-radius: 0;
        margin: 0;
        position: relative;
    }

    .coaches-sidebar,
    .coach-clients-sidebar {
        width: 100%;
        position: absolute;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 999999;
        height: 100%;
        background: var(--background-primary);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .coaches-sidebar.active,
    .coach-clients-sidebar.active {
        left: 0;
    }

    .coach-chat-area,
    .chat-area {
        width: 100%;
        position: relative;
    }

    .chat-header {
        padding: 1rem;
        padding-left: 4rem; /* Add space for mobile toggle button */
    }

    .chat-header h3 {
        font-size: 1rem;
    }

    .chat-messages {
        padding: 1rem;
        height: calc(100vh - 280px);
    }

    .message {
        max-width: 85%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .message-input-area {
        padding: 1rem;
    }

    .message-input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .send-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

/* Hide mobile toggles on desktop */
@media (min-width: 769px) {
    .mobile-coaches-toggle,
    .mobile-clients-toggle {
        display: none !important;
    }
}


    /* Add overlay when sidebar is active */
    .coaches-sidebar.active::before,
    .coach-clients-sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }

    /* Theme-aware overlay */
    [data-theme="light"] .coaches-sidebar.active::before,
    [data-theme="light"] .coach-clients-sidebar.active::before,
    body:not([data-theme]) .coaches-sidebar.active::before,
    body:not([data-theme]) .coach-clients-sidebar.active::before {
        background: rgba(0, 0, 0, 0.2);
    }

    [data-theme="dark"] .coaches-sidebar.active::before,
    [data-theme="dark"] .coach-clients-sidebar.active::before {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .messaging-container {
        height: calc(100vh - 120px);
    }

    .chat-messages {
        height: calc(100vh - 260px);
        padding: 0.75rem;
    }

    .message {
        max-width: 90%;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .message-input-area {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .message-input {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .send-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .mobile-coaches-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Messaging Styles */
.messaging-container {
    margin: 0 auto;
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    height: 600px;
}

/* Coaches Sidebar */
.coaches-sidebar {
    width: 320px;
    background: var(--background-primary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.coaches-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.coaches-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.coaches-list {
    flex: 1;
    overflow-y: auto;
}

.coach-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.coach-item:hover {
    background: var(--background-light);
}

.coach-item.active {
    background: rgba(14, 77, 164, 0.1);
    border-right: 3px solid var(--wynfull-blue);
}

.coach-item .coach-avatar {
    position: relative;
    flex-shrink: 0;
}

.coach-item .coach-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--background-primary);
}

.status-dot.online {
    background: #22c55e;
}

.status-dot.away {
    background: #f59e0b;
}

.status-dot.offline {
    background: #6b7280;
}

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

.coach-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.coach-specialty {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.last-message {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
}

.message-preview {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.last-message .message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.unread-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--wynfull-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coach-header {
    background: var(--background-primary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coach-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coach-profile .coach-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.coach-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.coach-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.coach-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.coach-status.online {
    color: #22c55e;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.coach-actions {
    display: flex;
    gap: 0.75rem;
}

.coach-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.messages-area {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.messages-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-date {
    text-align: center;
    margin: 1rem 0;
}

.message-date span {
    background: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    background: var(--background-light);
    border-radius: 16px;
    padding: 0.75rem 1rem;
}

.user-message .message-content {
    background: var(--wynfull-blue);
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
}

.user-message .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.user-message .message-text {
    color: white;
}

.message-attachment {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(14, 77, 164, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-attachment i {
    color: #ef4444;
    font-size: 1.1rem;
}

.message-attachment span {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.attachment-download {
    background: none;
    border: none;
    color: var(--wynfull-blue);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.attachment-download:hover {
    background: rgba(14, 77, 164, 0.1);
}

.message-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-primary);
}

.message-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--background-light);
    border-radius: 24px;
    padding: 0.75rem;
}

.attachment-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attachment-btn:hover {
    background: var(--wynfull-blue);
    color: white;
}

.message-input {
    flex: 1;
    border: none;
    background: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 120px;
    min-height: 20px;
}

.message-input::placeholder {
    color: var(--text-light);
}

.send-btn {
    background: var(--wynfull-blue);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    background: var(--wynfull-blue-dark);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Plans Page Upgrade Styles */
.current-plan-notice {
    background: linear-gradient(135deg, rgba(14, 77, 164, 0.1) 0%, rgba(14, 77, 164, 0.05) 100%);
    border: 1px solid rgba(14, 77, 164, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-content i {
    font-size: 1.5rem;
    color: var(--wynfull-blue);
    flex-shrink: 0;
}

.notice-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.notice-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(336px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card.premium {
    border: 2px solid var(--wynfull-blue);
    position: relative;
    transform: scale(1.02);
}

.price-difference {
    font-size: 0.85rem;
    color: var(--wynfull-blue);
    font-weight: 600;
    margin-top: 0.5rem;
}

.plan-features li i.fa-star {
    color: var(--wynfull-blue);
}

.plan-features li i.fa-crown {
    color: #f59e0b;
}

.upgrade-benefits {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.upgrade-benefits h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--wynfull-blue);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Coach Dashboard Styles */
.coach-sidebar .sidebar-header .logo .coach-badge {
    background: var(--wynfull-blue);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.25rem;
    display: inline-block;
}

.role-switch-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.role-switch-btn:hover {
    background: var(--wynfull-blue);
    color: white;
    border-color: var(--wynfull-blue);
}

.coach-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(14, 77, 164, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wynfull-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-change.positive {
    color: #22c55e;
}

.coach-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .coach-sections {
        grid-template-columns: 1fr;
    }
}

.today-schedule, .client-activity {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.today-schedule h2, .client-activity h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.schedule-list, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--wynfull-blue);
}

.schedule-item.upcoming {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.schedule-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.schedule-time .time {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.schedule-time .duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.schedule-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.client-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
}

.schedule-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-action {
    background: none;
    border: 1px solid var(--wynfull-blue);
    color: var(--wynfull-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.coach-quick-actions h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--wynfull-blue);
    margin-bottom: 1rem;
}

.quick-action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.quick-action-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.quick-action-card button {
    width: 100%;
}

/* Coach Dashboard - Clients Page */
.clients-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: var(--wynfull-blue);
    color: white;
    border-color: var(--wynfull-blue);
}

.clients-search {
    position: relative;
    width: 300px;
}

.clients-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.clients-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.client-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.client-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info {
    flex: 1;
}

.client-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.client-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.client-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

.client-status.online {
    background: #22c55e;
}

.client-status.away {
    background: #f59e0b;
}

.client-status.offline {
    background: #6b7280;
}

.client-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.client-stats .stat {
    text-align: center;
}

.client-stats .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.client-stats .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.client-actions {
    display: flex;
    gap: 0.75rem;
}

.client-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Coach Dashboard - Messages Page */
.coach-messaging-container {
    display: flex;
    height: calc(100vh - 200px);
    background: var(--background-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.coach-clients-sidebar {
    width: 350px;
    background: var(--background-light);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.clients-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clients-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.new-message-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
    position: relative;
}

.conversation-item:hover {
    background: var(--background-primary);
}

.conversation-item.active {
    background: rgba(14, 77, 164, 0.1);
    border-right: 3px solid var(--wynfull-blue);
}

.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

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

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

.conversation-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.last-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.unread-count {
    background: var(--wynfull-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.coach-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--background-primary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.client-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.chat-actions {
    display: flex;
    gap: 0.75rem;
}

.chat-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coach-messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message-date {
    text-align: center;
    margin: 1rem 0;
}

.message-date span {
    background: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.client-message {
    justify-content: flex-start;
}

.coach-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    background: var(--background-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.coach-message .message-content {
    background: var(--wynfull-blue);
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-sender {
    font-size: 0.8rem;
    font-weight: 600;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-primary);
}

.message-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--background-light);
    border-radius: 12px;
    padding: 0.75rem;
}

.attachment-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.attachment-btn:hover {
    background: var(--background-primary);
    color: var(--wynfull-blue);
}

.message-input {
    flex: 1;
    border: none;
    background: none;
    resize: none;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 120px;
    min-height: 20px;
}

.message-input:focus {
    outline: none;
}

.send-btn {
    background: var(--wynfull-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--wynfull-blue-dark);
}

button.join-call {
    padding: 10px;
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
}

/* Download Format Popup Styles */
.download-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.download-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.download-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.download-popup-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.download-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.download-popup-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.download-popup-content {
    padding: 20px 24px 24px;
}

.download-popup-content p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.format-option:hover {
    border-color: var(--primary-blue);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.format-option i {
    font-size: 18px;
    width: 20px;
}

.format-option[data-format="pdf"] i {
    color: #dc2626;
}

.format-option[data-format="docx"] i {
    color: #2563eb;
}

.format-option[data-format="excel"] i {
    color: #059669;
}

/* Download notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Walkthrough Video Indicator Styles */
.walkthrough-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.walkthrough-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.walkthrough-indicator:active {
    transform: scale(0.95);
}

/* Walkthrough Sidebar Styles */
.walkthrough-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.walkthrough-sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.walkthrough-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.walkthrough-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.walkthrough-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.walkthrough-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.walkthrough-content {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.walkthrough-details {
    padding: 24px;
}

.walkthrough-details h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.tool-overview {
    margin-bottom: 24px;
}

.tool-overview p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.key-features {
    margin-bottom: 24px;
}

.key-features ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.key-features li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.getting-started {
    margin-bottom: 32px;
}

.getting-started ol {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.getting-started li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.walkthrough-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.walkthrough-actions .btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.walkthrough-actions .btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.walkthrough-actions .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.walkthrough-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .walkthrough-sidebar {
        width: 100%;
        right: -100%;
    }

    .walkthrough-actions {
        flex-direction: column;
    }

    .walkthrough-actions .btn-primary,
    .walkthrough-actions .btn-secondary {
        flex: none;
    }
}

/* Why Wynfull is Different Section */
.why-different {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.why-different::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.why-different .container {
    position: relative;
    z-index: 1;
}

.why-different .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-different .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wynfull-blue);
    margin-bottom: 1rem;
    position: relative;
}

.why-different .section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.difference-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(14, 77, 164, 0.08);
    border: 1px solid rgba(14, 77, 164, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wynfull-blue), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.difference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 77, 164, 0.15);
}

.difference-card:hover::before {
    transform: scaleX(1);
}

.difference-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wynfull-blue), var(--wynfull-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(14, 77, 164, 0.2);
}

.difference-icon i {
    font-size: 2rem;
    color: var(--white);
}

.difference-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wynfull-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.difference-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Why Wynfull is Different CTA Section */
.why-different-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(14, 77, 164, 0.1);
    border: 1px solid rgba(14, 77, 164, 0.08);
    position: relative;
    overflow: hidden;
}

.why-different-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 77, 164, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.why-different-description {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.movement-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--wynfull-blue), var(--wynfull-blue-light));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(14, 77, 164, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movement-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.movement-button:hover {
    background: linear-gradient(135deg, var(--wynfull-blue-dark), var(--wynfull-blue));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 77, 164, 0.4);
    color: var(--white);
    text-decoration: none;
}

.movement-button:hover::before {
    left: 100%;
}

.movement-button:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 1024px) {
    .difference-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .difference-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .why-different {
        padding: 3rem 0;
    }

    .why-different .section-header h2 {
        font-size: 2rem;
    }

    .difference-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .difference-card {
        padding: 2rem 1.5rem;
    }

    .why-different-cta {
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem 0;
        border-radius: 16px;
    }

    .why-different-description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .movement-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 40px;
    }
}

@media (max-width: 480px) {
    .why-different .section-header h2 {
        font-size: 1.75rem;
    }

    .difference-card {
        padding: 1.5rem 1rem;
    }

    .difference-icon {
        width: 70px;
        height: 70px;
    }

    .difference-icon i {
        font-size: 1.75rem;
    }

    .difference-card h3 {
        font-size: 1.3rem;
    }

    .why-different-description {
        font-size: 1.1rem;
    }

    .movement-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}


/* START: Styles for Booking Availability Time Slots */
.time-slots-container {
    min-height: 100px;
    padding: 1rem;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-slot-placeholder,
.time-slot-loading,
.time-slot-error {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.time-slot-error {
    color: var(--error-red);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.time-slot-btn {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.time-slot-btn:hover {
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.time-slot-btn.active {
    background-color: var(--wynfull-blue);
    border-color: var(--wynfull-blue);
    color: var(--white);
    transform: scale(1.05);
}
/* END: Styles for Booking Availability Time Slots */

/* START: Two-Factor Authentication Styles */
.status-enabled {
    color: var(--success-green);
    font-weight: 600;
}

.two-factor-setup, .two-factor-enabled {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.two-factor-setup h3, .two-factor-enabled h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.two-factor-setup p, .two-factor-enabled p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.qr-code-section, .recovery-codes-section, .disable-2fa-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.disable-2fa-section {
    border-bottom: none;
    padding-bottom: 0;
}

.qr-code-container {
    background: var(--white);
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: inline-block;
}

.qr-code-container svg {
    display: block;
    max-width: 200px;
    height: auto;
}

.recovery-codes-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.recovery-codes-list li {
    background: var(--background-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    border: 1px solid var(--border-light);
}

/* 2FA Challenge Page Styles */
.auth-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.auth-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.auth-card-body .back-to-login {
    color: var(--text-primary);
    text-decoration: none;
    padding-top: 15px;
    display: block;
}

.auth-card-header p {
    color: var(--text-secondary);
}

.auth-card-body {
    padding: 2rem;
}

.form-divider {
    text-align: center;
    color: var(--text-light);
    margin: 1rem 0;
}
/* END: Two-Factor Authentication Styles */

.auth-layout-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-brand-header {
    margin-bottom: 2rem;
}

.auth-brand-header .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-brand-header .brand-logo {
    width: 56px;
    height: 56px;
}

.auth-brand-header .brand-text h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--wynfull-blue);
}

.auth-brand-header .brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-weight: 500;
}
/* END: Auth Layout Styles */

.mt-4 {
    margin-top: 8px;
}

.w-full {
    width: 100%;
}

/* START: 2FA Confirmation Section Styles */
.confirm-2fa-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirm-2fa-section .qr-code-container {
    margin: 1rem 0;
}

.confirm-2fa-section form {
    width: 100%;
    max-width: 300px;
}
/* END: 2FA Confirmation Section Styles */

.form-group-checkbox {
    display: flex;
    align-items: center; /* Align checkbox and label vertically */
    gap: 0.75rem; /* Space between checkbox and label */
    margin-top: 1rem; /* Add some space above */
    flex-wrap: wrap; /* Allow hint to wrap */
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--wynfull-blue); /* Style the check color */
    cursor: pointer;
    flex-shrink: 0;
}

.form-group-checkbox label {
    margin-bottom: 0; /* Remove default bottom margin from label */
    font-weight: 500;
    cursor: pointer;
    flex-grow: 1; /* Allow label to take space */
}

.checkbox-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 100%; /* Make hint take full width */
    padding-left: calc(18px + 0.75rem); /* Align hint under the label text */
    margin-top: -0.25rem; /* Pull hint slightly closer */
}

/* START: Admin Resource Management Styles */
.admin-resource-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-resource-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-resource-filters .filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-resource-filters .filter-tab:hover {
    border-color: var(--wynfull-blue);
    color: var(--wynfull-blue);
}

.admin-resource-filters .filter-tab.active {
    background: var(--wynfull-blue);
    border-color: var(--wynfull-blue);
    color: var(--white);
}


.admin-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.admin-resource-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column; /* Stack header, body, footer */
    transition: box-shadow 0.2s ease;
}

.admin-resource-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-resource-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light); /* Header background */
}

.admin-resource-card .collection-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-resource-card .collection-icon i {
    font-size: 1.5rem;
    color: var(--wynfull-blue);
}

.admin-resource-card .collection-info {
    flex-grow: 1;
}

.admin-resource-card .collection-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.admin-resource-card .coach-submitter,
.admin-resource-card .submission-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.admin-resource-card .status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-resource-card .status-badge.status-pending {
    background-color: rgba(245, 158, 11, 0.1); /* warning-orange */
    color: #d97706; /* darker orange */
}
.admin-resource-card .status-badge.status-approved {
    background-color: rgba(34, 197, 94, 0.1); /* success-green */
    color: #15803d; /* darker green */
}
.admin-resource-card .status-badge.status-rejected {
    background-color: rgba(239, 68, 68, 0.1); /* error-red */
    color: #b91c1c; /* darker red */
}

.admin-resource-card .card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allow body to fill space */
}

.admin-resource-card .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.admin-resource-card .module-preview {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}
.admin-resource-card .module-preview strong {
    color: var(--text-primary);
}
.admin-resource-card .module-preview ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}
.admin-resource-card .module-preview li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-resource-card .module-preview li i {
    width: 14px; /* Align icons */
    text-align: center;
    color: var(--text-light);
}


.admin-resource-card .rejection-reason,
.admin-resource-card .approval-info {
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}
.admin-resource-card .rejection-reason {
    background-color: rgba(239, 68, 68, 0.05); /* Lighter red */
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.1);
}
.admin-resource-card .rejection-reason strong {
    display: block;
    margin-bottom: 0.25rem;
}
.admin-resource-card .approval-info {
    background-color: rgba(34, 197, 94, 0.05); /* Lighter green */
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.1);
}


.admin-resource-card .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-light);
    display: flex;
    justify-content: flex-end; /* Align buttons right */
    gap: 0.75rem;
}

.admin-resource-card .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}
/* Adjust success button color if needed */
.btn-success {
    background-color: var(--success-green);
    color: var(--white);
    border: none;
}
.btn-success:hover {
    background-color: #047857; /* Darker green */
}

/* Ensure modal styles apply */
#rejectReasonModal .modal-content {
    max-width: 500px; /* Adjust width if needed */
}
#rejectReasonModal p strong {
    color: var(--wynfull-blue); /* Highlight collection title */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-resource-filters {
        justify-content: center;
    }
    .admin-resources-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .admin-resource-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-resource-card .status-badge {
        align-self: flex-start; /* Align badge left below info */
        margin-top: 0.5rem;
    }
    .admin-resource-card .card-footer {
        flex-direction: column;
        align-items: stretch; /* Make buttons full width */
    }
    .admin-resource-card .card-footer form,
    .admin-resource-card .card-footer button,
    .admin-resource-card .card-footer a {
        width: 100%;
        text-align: center;
    }
}
/* END: Admin Resource Management Styles */

/* Locked State (Collection & Modules) */
.phase-card.locked,
.phase-modules.locked,
.module-item.locked {
    opacity: 0.6;
    /* pointer-events: none; Remove this if using disabled buttons */
}
.phase-card.locked .phase-header,
.phase-card.locked .phase-progress {
    /* Optional: Slightly muted background */
    /* background-color: #f9fafb; */
}
.module-btn.locked {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.8;
}
.module-btn.locked:hover {
    background-color: var(--text-light); /* Prevent hover effect */
}

/* Module Completed State */
.module-item.completed {
    /* Optional: Add visual indicator */
    border-left: 4px solid var(--success-green);
    background-color: var(--completed-resources); /* Light green background */
}
.module-item.completed .module-info h4 {
    /* Optional: Change title color */
    /* color: var(--success-green); */
}

/* Collection Status Styles */
.phase-status.not-started i { color: var(--text-light); }
.phase-status.not-started span { color: var(--text-secondary); }
.phase-status.current i { color: var(--wynfull-blue); } /* Existing */
.phase-status.current span { color: var(--wynfull-blue); } /* Existing */
.phase-status.completed i { color: var(--success-green); } /* Existing */
.phase-status.completed span { color: var(--success-green); } /* Existing */
.phase-status.locked i { color: var(--text-light); } /* Existing */
.phase-status.locked span { color: var(--text-secondary); } /* Existing */

/* Resource Type Tag Colors */
.resource-tag { /* Base style defined elsewhere */
    /* ... */
}
.resource-tag.template { background: rgba(167, 139, 250, 0.1); color: #0E4DA4; } /* Violet */
.resource-tag.word { background: rgba(59, 130, 246, 0.1); color: #2563eb; } /* Blue */
.resource-tag.pdf { background: rgba(239, 68, 68, 0.1); color: #b91c1c; } /* Red */
.resource-tag.excel { background: rgba(34, 197, 94, 0.1); color: #15803d; } /* Green */
.resource-tag.video { background: rgba(245, 158, 11, 0.1); color: #b45309; } /* Orange */

/* Small adjustments */
.module-item .module-btn.secondary { /* Style for View Again button */
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.module-item .module-btn.secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}
.no-modules {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}
/* END: Resource Library Completion/Locking Styles */

/* START: Manage Modules Page Styles */
.collection-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--background-primary);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    align-self: flex-start;
    flex-shrink: 0;
}
.back-link:hover { color: var(--wynfull-blue); }
.back-link i { margin-right: 0.5rem; }

.collection-info-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
}

.collection-icon-large {
    width: 80px;
    height: 80px;
    background: var(--background-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.collection-icon-large i { font-size: 2.5rem; color: var(--wynfull-blue); }

.collection-details-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}
.collection-details-header p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.collection-details-header .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

#addModuleBtn {
    align-self: flex-start;
    flex-shrink: 0;
}

.module-list-container {
    margin-top: 2rem;
}
.module-list-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s ease;
}
.module-item:hover { box-shadow: var(--shadow-md); }

.module-icon {
    width: 50px;
    height: 50px;
    background: var(--background-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.module-icon i { font-size: 1.5rem; color: var(--wynfull-blue); }

.module-info {
    flex-grow: 1;
}
.module-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.module-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}
.module-info .resource-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: rgba(14, 77, 164, 0.1);
    color: var(--wynfull-blue);
}

.module-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}
.module-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.module-actions form { margin: 0; }

.no-modules-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--background-light);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
}

.current-file-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

/* Responsive Styles for Manage Modules Page */
@media (max-width: 900px) {
    .collection-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    #addModuleBtn {
        align-self: auto;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .collection-info-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .module-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .module-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr; /* Edit and Delete side-by-side */
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px dashed var(--border-light);
    }
    .module-actions form,
    .module-actions button {
        width: 100%;
        justify-content: center; /* Center text in buttons */
    }
}
/* END: Manage Modules Page Styles */

/* Card Info Indicators & Tooltips */
.card-header-with-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
    text-align: left;
}

.card-header-with-info h2,
.card-header-with-info h3 {
    margin: 0;
    flex: 1;
}

.info-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B7280, #6B7280);
    color: white;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    overflow: hidden;
    right: 0;
}

.info-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-indicator:hover {
    background: linear-gradient(135deg, #6B7280, #6B7280);
    transform: scale(1.15);
}

.info-indicator:hover::before {
    opacity: 1;
}

.info-indicator:active {
    transform: scale(1.05);
}

.info-indicator i {
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.tooltip-container {
    position: fixed;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 420px;
    max-height: 400px;
    z-index: 1000;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: tooltipFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tooltip-content {
    padding: 2rem;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 12px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(400px - 2rem);
}

/* Custom scrollbar styling for tooltip */
.tooltip-content::-webkit-scrollbar {
    width: 3px;
}

.tooltip-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 1px;
}

.tooltip-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1f2937, #1f2937);
    border-radius: 1px;
}

.tooltip-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1f2937, #1f2937);
}

.tooltip-content h4 {
    display: none;
}

.tooltip-content strong {
    color: #1f2937;
    font-weight: 700;
    font-size: 15px;
}

.tooltip-content br {
    margin-bottom: 0.5rem;
}

.tooltip-content p {
    margin: 0 0 1rem 0;
}

.tooltip-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.tooltip-content li {
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.tooltip-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.1));
}

/* Dark mode support for tooltips */
[data-theme="dark"] .tooltip-container {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tooltip-content {
    color: #e5e7eb;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Dark mode scrollbar styling */
[data-theme="dark"] .tooltip-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tooltip-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

[data-theme="dark"] .tooltip-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0E4DA4, #0E4DA4);
}

[data-theme="dark"] .tooltip-content h4 {
    display: none;
}

[data-theme="dark"] .tooltip-content strong {
    color: #f9fafb;
}

[data-theme="dark"] .tooltip-content li {
    color: #d1d5db;
}

[data-theme="dark"] .tooltip-arrow {
    border-bottom-color: #1f2937;
    filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.3));
}

/* Dark mode info indicator adjustments */
[data-theme="dark"] .info-indicator {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-indicator:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

/* Responsive tooltip */
@media (max-width: 768px) {
    .tooltip-container {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        max-height: 300px;
        left: 10px !important;
        right: 10px;
    }
    
    .tooltip-content {
        padding: 1rem;
        font-size: 13px;
        max-height: calc(300px - 1rem);
    }
    
    .tooltip-content h4 {
        font-size: 15px;
    }
}

/* Ensure info indicators work well in different card layouts */
.phase-status-card .card-header-with-info,
.primary-goals-card .card-header-with-info {
    margin-bottom: 1.5rem;
}

.metric-card .card-header-with-info {
    margin-bottom: 1rem;
}

.metric-card .card-header-with-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Adjust spacing for cards with info indicators */
.phase-status-card .card-header-with-info + .phase-chart,
.primary-goals-card .card-header-with-info + .goals-list,
.metric-card .card-header-with-info + * {
    margin-top: 0;
}
