/* Concierge Fitness App Styles */

:root {
    /* Colors - Concierge Fitness branding */
    --primary-color: #1a1a2e;
    --secondary-color: #0f3460;
    --accent-color: #16213e;
    --highlight-color: #e94560;
    --success-color: #00d9ff;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 200px;
    height: auto;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.password-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--bg-white);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.forgot-password {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    margin-top: 16px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background-color: #fee2e2;
    color: var(--danger-color);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    font-size: var(--font-size-sm);
    text-align: center;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    color: #059669;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    font-size: var(--font-size-sm);
    text-align: center;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-gray);
}

.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .login-container {
        padding: 30px 20px;
    }
}

/* ========================================
   TRAINER APP STYLES
   ======================================== */

/* App Container - Mobile-first with max-width */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--bg-white);
    min-height: 100vh;
    position: relative;
}

/* Logo Bar */
.logo-bar {
    background: var(--bg-white);
    padding: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 428px;
    margin: 0 auto;
    z-index: 101;
}

.logo-bar a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-bar a:hover {
    opacity: 0.8;
    cursor: pointer;
}

.app-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 16px 20px;
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    max-width: 428px;
    margin: 0 auto;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.app-main {
    padding: 20px;
    margin-top: 120px; /* Logo bar + Header */
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Hamburger Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 201;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

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

.menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.menu-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-items {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 16px;
}

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

.menu-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    font-weight: 600;
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.menu-logout {
    width: 100%;
    padding: 14px;
    background: var(--danger-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.menu-logout:hover {
    opacity: 0.9;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 100px;
}

.quick-action-btn:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-icon {
    font-size: 32px;
}

.quick-action-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* OLD STYLES TO REMOVE - Keep for backward compat but override */
/* Navigation Bar */
.trainer-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.nav-link.active {
    background: var(--secondary-color);
    color: var(--text-light);
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    display: none;
}

.badge {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    display: none;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.user-role {
    font-size: 12px;
    color: var(--text-gray);
}

.btn-logout {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-logout:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* Dashboard Main Content */
.dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Page Header */
.page-header {
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-gray);
}

/* Dashboard Section */
.dashboard-section {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.section-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.section-link:hover {
    text-decoration: underline;
}

.section-content {
    min-height: 100px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: rgba(15, 52, 96, 0.1);
}

.stat-success .stat-icon {
    background: rgba(0, 217, 255, 0.1);
}

.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

.stat-info .stat-icon {
    background: rgba(233, 69, 96, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-weight: 500;
}

.stat-meta {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: var(--spacing-xs);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    transition: background 0.2s;
}

.activity-item:hover {
    background: #e5e7eb;
}

.activity-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.activity-completed .activity-icon {
    background: rgba(0, 217, 255, 0.1);
}

.activity-skipped .activity-icon {
    background: rgba(245, 158, 11, 0.1);
}

.activity-message .activity-icon {
    background: rgba(26, 26, 46, 0.1);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.activity-workout {
    font-weight: 600;
    color: var(--secondary-color);
}

.activity-message-preview {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.activity-time {
    font-size: 12px;
    color: var(--text-gray);
}

/* Old client card styles removed - see Session 15 styles below for updated client management styles */

.btn-view {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view:hover {
    background: var(--secondary-color);
    color: white;
}

.clients-view-all {
    margin-top: var(--spacing-md);
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Quick Actions */
.quick-actions {
    margin-top: var(--spacing-lg);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.action-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-md);
}

.action-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.action-description {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-gray);
}

.empty-state p {
    margin-bottom: var(--spacing-md);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-text {
        display: inline;
    }

    .user-info {
        display: flex;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trainer-nav {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--spacing-md);
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: var(--spacing-md);
    }

    .nav-text {
        display: inline;
    }

    .nav-toggle {
        display: block;
    }

    .dashboard-main {
        padding: var(--spacing-md);
    }

    .dashboard-section {
        padding: var(--spacing-lg);
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .stat-value {
        font-size: 24px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== EXERCISE LIBRARY STYLES ===== */

/* Exercise Filters */
.exercise-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.filter-select {
    padding: 14px 16px;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.filter-chip {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: var(--bg-light);
    border-color: var(--secondary-color);
}

.filter-chip.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Info Icon */
.info-icon {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.6;
    vertical-align: middle;
}

.info-icon:hover {
    background: var(--bg-light);
    opacity: 1;
    transform: scale(1.1);
}

/* Exercise Grid */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.exercise-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: rgba(15, 52, 96, 0.02);
}

.exercise-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--bg-light);
    overflow: hidden;
}

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

/* Exercise videos - show full video without cropping */
.exercise-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.placeholder-icon {
    font-size: 60px;
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.exercise-info {
    padding: var(--spacing-md);
    flex: 1;
}

.exercise-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.exercise-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.exercise-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Muscle Group Badges */
.muscle-chest { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.muscle-back { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.muscle-legs { background: rgba(16, 185, 129, 0.1); color: #059669; }
.muscle-shoulders { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.muscle-arms { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.muscle-core { background: rgba(245, 158, 11, 0.1); color: #d97706; }

/* Equipment Badge */
.equipment {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-gray);
}

.exercise-description {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exercise-actions {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* View Toggle (grid/list) */
.view-toggle {
    display: inline-flex;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    min-width: 36px;
    min-height: 32px;
}

.view-toggle-btn:hover {
    color: var(--text-dark);
}

.view-toggle-btn.active {
    background: var(--card-background);
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Exercise List View (compact, swipe-to-delete) */
.exercise-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Swipe row: holds the absolutely-positioned delete button + sliding surface */
.swipe-row {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ef4444; /* red shows behind the surface as it slides */
}

.swipe-row-surface {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y; /* allow vertical scroll, JS handles horizontal */
}

.swipe-row-surface:active {
    background: #f3f4f6;
}

.swipe-row-surface .exercise-name {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swipe-row-surface .exercise-meta {
    margin: 0;
    gap: 4px;
}

.swipe-row-surface .exercise-badge {
    padding: 2px 8px;
    font-size: 11px;
}

/* Hidden delete button revealed by swipe */
.swipe-delete {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    border: none;
    background: #ef4444;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
}

.swipe-delete:active {
    background: #dc2626;
}

/* Pull-to-refresh indicator */
.ptr-indicator {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 50%;
    transform: translate(-50%, -60px);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    z-index: 9999;
    pointer-events: none;
}

.ptr-arrow {
    transition: transform 0.18s ease;
}

.ptr-indicator.ptr-ready .ptr-arrow {
    transform: rotate(180deg);
}

.ptr-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(15, 52, 96, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: ptr-spin 0.8s linear infinite;
}

.ptr-indicator.ptr-refreshing .ptr-arrow {
    display: none;
}

.ptr-indicator.ptr-refreshing .ptr-spinner {
    display: block;
}

@keyframes ptr-spin {
    to { transform: rotate(360deg); }
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--bg-light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

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

.modal-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-textarea {
    resize: vertical;
    font-family: var(--font-family);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-file {
    width: 100%;
    padding: 10px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    cursor: pointer;
}

.form-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-gray);
}

/* Video/Thumbnail Preview */
.video-preview,
.thumbnail-preview {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

.video-player {
    width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.thumbnail-image {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: var(--spacing-sm) 0;
    text-decoration: underline;
}

.btn-text:hover {
    opacity: 0.8;
}

.btn-danger {
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-light);
    background: var(--danger-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.text-warning {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

/* ===================================
   WORKOUT BUILDER STYLES
   =================================== */

/* Available Exercises List */
.available-exercises {
    max-height: 400px;
    overflow-y: auto;
    margin-top: var(--spacing-md);
}

.available-exercise-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
}

.available-exercise-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.available-exercise-info {
    flex: 1;
}

.available-exercise-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.available-exercise-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.exercise-equipment {
    color: var(--text-gray);
    font-size: 12px;
}

.btn-add-exercise {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-exercise:hover {
    background: var(--primary-color);
    color: white;
}

/* Workout Exercises List (Draggable) */
.workout-exercises-list {
    margin-top: var(--spacing-md);
}

.workout-exercise-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    cursor: move;
    transition: all 0.2s;
}

.workout-exercise-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.workout-exercise-item.dragging {
    opacity: 0.5;
    border-style: dashed;
}

.drag-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.drag-icon {
    color: var(--text-gray);
    font-size: 18px;
    cursor: grab;
}

.drag-icon:active {
    cursor: grabbing;
}

.exercise-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    border-radius: 50%;
}

.workout-exercise-content {
    flex: 1;
}

.workout-exercise-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.workout-exercise-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
}

.btn-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--danger-color);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: var(--danger-color);
    color: white;
}

.workout-exercise-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.workout-exercise-details {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.workout-exercise-notes {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    font-style: italic;
}

.btn-edit-exercise {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-edit-exercise:hover {
    text-decoration: underline;
}

/* Client Checkboxes */
.client-checkboxes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 250px;
    overflow-y: auto;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    background: var(--bg-white);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: var(--border-radius);
}

.checkbox-label:hover {
    background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: var(--font-size-base);
    color: var(--text-dark);
}

/* Assignment Dates */
.assignment-dates {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Exercise Detail Modal Specifics */
.exercise-modal-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.action-buttons .btn {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .available-exercise-item {
        padding: var(--spacing-sm);
    }

    .workout-exercise-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .drag-handle {
        gap: 2px;
    }

    .btn-add-exercise {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WORKOUT LIST STYLES
   =================================== */

.workout-card {
    margin-bottom: var(--spacing-lg);
}

.workout-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.workout-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.workout-card-description {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.workout-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.workout-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.workout-card-actions .btn {
    width: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-gray);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ============================================
   SESSION 15: CLIENT MANAGEMENT STYLES
   ============================================ */

/* Client List Styles */
.search-filter-container {
    margin-bottom: var(--spacing-md);
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.client-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.client-card {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Invitation Cards */
.invitation-card {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.invitation-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.invitation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.invitation-email {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invitation-status {
    font-size: var(--font-size-sm);
    color: #92400e;
    margin: 0;
}

.btn-copy-invitation {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy-invitation:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.btn-copy-invitation:active {
    transform: translateY(0);
}

.btn-copy-invitation.btn-copied {
    background: #16a34a;
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.client-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.client-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-email {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-goals {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    margin: 0;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

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

.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
}

.stat-note {
    font-size: var(--font-size-xs);
    color: var(--text-gray);
    margin-top: 2px;
}

/* Client Workout Info */
.client-workout-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.workout-info-item {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.workout-info-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.workout-info-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.workout-info-date {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

/* Workout status colors */
.workout-completed {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.workout-completed .workout-info-label {
    color: #065f46;
}

.workout-completed .workout-info-value {
    color: #047857;
}

.workout-upcoming {
    background: #dbeafe;
    border-color: #93c5fd;
}

.workout-upcoming .workout-info-label {
    color: #1e40af;
}

.workout-upcoming .workout-info-value {
    color: #1d4ed8;
}

.workout-overdue {
    background: #fee2e2;
    border-color: #fca5a5;
}

.workout-overdue .workout-info-label {
    color: #991b1b;
}

.workout-overdue .workout-info-value {
    color: #dc2626;
}

.workout-needs-assignment {
    background: #fef3c7;
    border-color: #fcd34d;
}

.workout-needs-assignment .workout-info-label {
    color: #92400e;
}

.workout-needs-assignment .workout-info-value {
    color: #b45309;
}

.workout-none {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.workout-none .workout-info-value {
    color: var(--text-gray);
    font-style: italic;
}

/* Message Button */
.btn-message {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-message:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.btn-message:active {
    transform: scale(0.95);
}

/* Client Detail Styles */
.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.8;
}

.client-profile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-value {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.weight-change {
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 12px;
}

/* Strength Gains List */
.strength-gains-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.strength-gain-item {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
}

.strength-gain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.exercise-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.strength-gain-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.strength-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strength-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.btn-block {
    width: 100%;
}

/* Empty Message */
.empty-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    padding: var(--spacing-lg);
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   MESSAGING STYLES
   =================================== */

/* Conversation List */
.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.conversation-item:hover {
    background-color: var(--bg-secondary);
}

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

.conversation-item.unread {
    background-color: rgba(14, 165, 233, 0.05);
}

.conversation-avatar {
    flex-shrink: 0;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

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

.conversation-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.conversation-time {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 8px;
}

.conversation-preview {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.unread .conversation-preview {
    font-weight: 500;
    color: var(--text-primary);
}

.conversation-badge {
    flex-shrink: 0;
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Message Thread */
.message-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.message {
    display: flex;
    width: 100%;
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
}

.message-sent .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-text {
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.message-sent .message-time {
    text-align: right;
}

.message-received .message-time {
    text-align: left;
}

/* Thread Header */
.thread-subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Message Form */
#messageInput {
    resize: vertical;
    min-height: 60px;
}

/* Unread Badge in Menu */
.menu-item {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   CLIENT APP STYLES (Session 17)
   ============================================ */

/* Client App Container Adjustments */
.client-app {
    padding-bottom: 70px; /* Space for bottom navigation */
}

.client-app .app-main {
    margin-top: 120px; /* Logo bar + Header */
    padding: 20px;
    padding-bottom: 40px; /* Extra space above bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    min-height: 60px;
    padding-top: 8px;
    z-index: 100;
    max-width: 428px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    /* iOS safe area support for Home Indicator and rounded corners */
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.bottom-nav .nav-icon {
    font-size: 22px;
    line-height: 1;
}

.bottom-nav .nav-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    line-height: 1;
}

/* Nav Badge (unread count) */
.bottom-nav .nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(12px);
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Next Workout Card */
.next-workout-card .card-body {
    padding: 24px;
}

.next-workout-details {
    text-align: center;
}

.workout-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.workout-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.workout-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 16px;
}

.workout-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.workout-progress-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}

.remaining-workouts {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: center;
}

/* Progress Summary Card */
.progress-summary-card .card-body {
    padding: 20px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 0;
    overflow: hidden;
}

.stat-icon {
    font-size: 28px;
    line-height: 1;
}

.stat-content {
    width: 100%;
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-positive {
    color: #10b981; /* Green for weight loss */
}

.stat-negative {
    color: #ef4444; /* Red for weight gain */
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--text-muted);
    font-size: var(--font-size-base);
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-state p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin-bottom: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin-bottom: 8px;
}

.empty-state-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Button Block (Full Width) */
.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}
}

/* ============================================================================
   CLIENT WORKOUTS LIST (Session 18)
   ============================================================================ */

.workout-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding: 0 var(--spacing-md);
}

.workout-card {
    display: block;
    background: var(--card-background);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.workout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: rgba(15, 52, 96, 0.02);
}

.workout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.workout-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.workout-status-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.workout-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.workout-status-badge.skipped {
    background: #fee2e2;
    color: #991b1b;
}

.workout-card-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.workout-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.workout-card-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-small {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-text-small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================================
   CLIENT WORKOUT DETAIL (Session 18)
   ============================================================================ */

/* Back Button */
.back-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

.back-button:active {
    transform: translateX(-1px);
}

/* Workout Progress */
.workout-progress-container {
    margin-bottom: 16px;
}

.progress-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-large {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-percentage {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: right;
}

.workout-info-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workout-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

/* Exercise Cards */
.exercise-card {
    background: var(--input-background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.exercise-card.exercise-complete {
    border-color: #10b981;
    background: #f0fdf4;
}

.exercise-header {
    margin-bottom: 12px;
}

.exercise-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.exercise-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-xs);
    font-weight: 600;
    flex-shrink: 0;
}

.exercise-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.exercise-video-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.exercise-video-btn:hover {
    opacity: 1;
}

.exercise-complete-badge {
    font-size: 20px;
    color: #10b981;
}

.exercise-target {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.exercise-rest {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.exercise-notes {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 6px;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.exercise-body {
    margin-top: 12px;
}

.exercise-logs {
    margin-bottom: 12px;
}

.exercise-logs-empty {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.exercise-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: var(--font-size-sm);
}

.log-set-number {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
}

.log-details {
    color: var(--text-secondary);
    flex: 1;
}

.log-notes {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-style: italic;
}

.exercise-log-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    border-radius: 6px;
}

/* Workout Actions */
.workout-actions {
    position: sticky;
    bottom: 80px; /* Above bottom nav */
    background: white;
    padding: 16px;
    margin: 0 -16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-success:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content.modal-video {
    max-width: 600px;
}

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--input-background);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.exercise-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

/* Form Styles in Modal */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-background);
    color: var(--text-primary);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Mobile Optimizations */
@media (max-width: 428px) {
    .workout-actions {
        bottom: 70px;
    }

    .modal-content {
        max-width: calc(100% - 32px);
    }

    .exercise-log-buttons {
        justify-content: stretch;
    }

    .exercise-log-buttons .btn-sm {
        flex: 1;
        min-width: 0;
    }
}

/* ============================================
   SESSION 19: PROGRESS & PROFILE PAGES
   ============================================ */

/* Progress Page - Weight Summary */
.weight-summary {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
}

.weight-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weight-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.weight-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.weight-value.weight-loss {
    color: #10b981; /* Green for weight loss */
}

.weight-value.weight-gain {
    color: #ef4444; /* Red for weight gain */
}

/* Progress Page - Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 16px;
}

#weightChart {
    max-width: 100%;
    height: auto !important;
}

/* Progress Page - Strength Gains */
.strength-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-white);
}

.strength-item:last-child {
    margin-bottom: 0;
}

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

.strength-exercise {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

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

.strength-stat {
    display: flex;
    flex-direction: column;
}

.strength-label {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.strength-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.strength-footer {
    font-size: 12px;
    color: var(--text-gray);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Muscle group badges for progress page */
.muscle-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.muscle-chest { background: #fee2e2; color: #991b1b; }
.muscle-back { background: #dbeafe; color: #1e40af; }
.muscle-legs { background: #dcfce7; color: #166534; }
.muscle-shoulders { background: #fef3c7; color: #92400e; }
.muscle-arms { background: #f3e8ff; color: #6b21a8; }
.muscle-core { background: #ffedd5; color: #9a3412; }
.muscle-cardio { background: #fce7f3; color: #9f1239; }
.muscle-full { background: #e0f2fe; color: #075985; }

/* Profile Page - Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.profile-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-gray);
}

/* Profile Page - Profile Details */
.profile-details {
    padding: 16px;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-detail-label {
    font-size: 14px;
    color: var(--text-gray);
}

.profile-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Profile Page - Action List */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.action-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.action-icon {
    font-size: 24px;
    margin-right: 12px;
}

.action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.action-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.action-subtitle {
    font-size: 12px;
    color: var(--text-gray);
}

.action-arrow {
    font-size: 20px;
    color: var(--text-gray);
}

/* Profile Page - App Info */
.app-info {
    padding: 4px 0;
}

.app-info-item {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.app-info-item:last-child {
    margin-bottom: 0;
}

.app-info-item strong {
    color: var(--text-gray);
    font-weight: 500;
}

.app-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.app-info-item a:hover {
    text-decoration: underline;
}

/* Button variations for profile page */
.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

.btn-full {
    width: 100%;
}

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Weight History Modal Section */
.weight-history-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.weight-history-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.weight-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.weight-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.weight-entry:last-child {
    margin-bottom: 0;
}

.weight-entry-info {
    display: flex;
    flex-direction: column;
}

.weight-entry-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.weight-entry-date {
    font-size: 12px;
    color: var(--text-gray);
}

.btn-delete-weight {
    background: var(--danger-color);
    border: none;
    border-radius: 50%;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.btn-delete-weight:hover {
    background: #dc2626;
}

.weight-history-list .empty-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    padding: 20px;
}

.weight-history-list .error-text {
    text-align: center;
    color: var(--danger-color);
    font-size: 14px;
    padding: 20px;
}

/* Check-In Modal Tabs */
.checkin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.checkin-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.checkin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Body composition stat line under weight chart */
.body-comp-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.body-comp-line span {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 3px 10px;
}

/* Latest Check-In Card */
.checkin-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.checkin-metric {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.checkin-metric-label {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.checkin-metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.checkin-notes {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-gray);
    padding: 8px 0 2px;
    font-style: italic;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-gray);
}

.strength-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 428px) {
    .strength-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .weight-stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .weight-label {
        margin-bottom: 0;
    }
}

/* ============================================
   INVITATION FEATURE STYLES
   ============================================ */

/* Invitation Link Display */
.invitation-link-container {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    align-items: center;
}

.invitation-link-container .btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.invitation-link-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #f8f9fa;
    min-width: 0;
}

.copy-icon {
    margin-right: 4px;
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
}

/* ============================================
   EXERCISE TYPE TOGGLE STYLES
   ============================================ */

/* Exercise Type Toggle */
.exercise-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.type-toggle-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.type-toggle-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.type-toggle-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}
