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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px; /* Space for bottom navigation */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header — white bar (app shell); brand pink is for accents only, not the bar */
.header {
    padding: 20px 20px 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    margin: 0;
    min-width: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Content */
.main-content {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Card Styles */
.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Enhanced Welcome Section */
.enhanced-welcome {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.welcome-text h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.welcome-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.quick-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 20px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.quick-action-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    min-height: 80px;
    justify-content: center;
}

.quick-action-btn:hover {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.quick-action-btn i {
    font-size: 20px;
    color: #e91e63;
    transition: color 0.3s ease;
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.section-header i {
    color: #e91e63;
    font-size: 16px;
}

/* Progress Timeline Section */
.progress-timeline-section {
    margin-bottom: 20px;
}

.progress-timeline {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.progress-timeline h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Welcome Section (fallback) */
.welcome-section h2 {
    color: #e91e63;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #6c757d;
    font-size: 14px;
}

/* Trainee dashboard visual refresh */
.trainee-dashboard-hero {
    background: linear-gradient(135deg, #fff 0%, #fff1f6 100%);
    border: 1px solid #fce7f3;
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.10);
}

.trainee-dashboard-avatar {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.25);
    margin-bottom: 12px;
}

.trainee-dashboard-card {
    border: 1px solid #eef2f7;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.trainee-dashboard-card .section-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}

.trainee-dashboard-card .measurement-card {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.trainee-dashboard-card .measurement-info label,
.trainee-dashboard-card .form-group label {
    font-weight: 600;
    color: #111827;
}

.trainee-dashboard-card .form-group input,
.trainee-dashboard-card .form-group textarea,
.trainee-dashboard-card .input-with-unit input {
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #111827;
    caret-color: #111827;
}

.trainee-dashboard-card .form-group input::placeholder,
.trainee-dashboard-card .form-group textarea::placeholder,
.trainee-dashboard-card .input-with-unit input::placeholder {
    color: #64748b;
}

.trainee-dashboard-card .form-group input:focus,
.trainee-dashboard-card .form-group textarea:focus,
.trainee-dashboard-card .input-with-unit input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.16);
}

.trainee-dashboard-card .bmi-display {
    border-radius: 14px;
    background: linear-gradient(120deg, #111827, #1f2937);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.28);
}

.trainee-dashboard-card .bmi-label,
.trainee-dashboard-card .bmi-category {
    color: rgba(255, 255, 255, 0.8);
}

.trainee-dashboard-card .bmi-value {
    color: #f9a8d4;
}

.trainee-dashboard-save-btn {
    margin-top: 10px;
    min-height: 44px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
}

/* Measurements Section */
.measurements-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.measurements-section p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.measurements-form {
    margin-bottom: 20px;
}

.measurement-row {
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.unit {
    position: absolute;
    right: 16px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

/* Keep unit text on the "end" side based on document direction */
[dir="ltr"] .input-with-unit input {
    padding-right: 46px !important;
    padding-left: 16px !important;
}

[dir="rtl"] .input-with-unit input {
    padding-left: 46px !important;
    padding-right: 16px !important;
}

[dir="rtl"] .input-with-unit .unit {
    right: auto !important;
    left: 16px !important;
}

/* AI Insights Section */
.ai-insights-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-insights-section .section-header h2 {
    color: white;
}

.ai-insights-section p {
    color: rgba(255, 255, 255, 0.9);
}

.ai-content {
    margin-bottom: 20px;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.insight-icon i {
    font-size: 18px;
    color: white;
}

.insight-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.insight-content p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

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

/* Enhanced Progress Section */
.month-overview {
    margin-bottom: 20px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.overview-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #e91e63;
    min-height: 80px;
}

.overview-item.success {
    border-left-color: #e91e63;
}

.overview-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.overview-content {
    flex: 1;
}

.overview-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #e91e63;
    line-height: 1.2;
}

.overview-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.progress-timeline {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.progress-timeline h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

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

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

.timeline-week {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    min-width: 60px;
}

.timeline-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.timeline-stats {
    font-size: 11px;
    color: #6c757d;
}

/* Weight Chart */
.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.chart-container h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

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

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
}

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

.bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #e91e63, #c2185b);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.3s ease;
    min-height: 20px;
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Measurements Chart */
.measurements-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.measurement-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.measurement-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.measurement-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.start-value, .end-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.progress-arrow {
    color: #e91e63;
    font-size: 12px;
}

.measurement-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.measurement-change.success {
    background: #fce4ec;
    color: #c2185b;
}

/* Improved Body Measurements Styles */
.measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.measurement-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.measurement-card:hover {
    border-color: #e91e63;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.measurement-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.measurement-info {
    flex: 1;
}

.measurement-info label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.measurement-change {
    font-size: 11px;
    color: #e91e63;
    font-weight: 500;
    margin-top: 4px;
}

/* BMI Display */
.bmi-display {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
}

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

.bmi-label {
    font-size: 14px;
    font-weight: 500;
}

.bmi-value {
    font-size: 24px;
    font-weight: 700;
}

.bmi-category {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
}

.bmi-progress {
    position: relative;
}

.bmi-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    margin-bottom: 8px;
}

.bmi-indicator {
    position: absolute;
    top: -2px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .measurements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .measurement-card {
        padding: 12px;
    }
    
    .measurement-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .bmi-display {
        padding: 16px;
    }
    
    .bmi-value {
        font-size: 20px;
    }
}

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

.stat-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Dashboard cards: override any late-loaded workout/plan stat color rules */
.progress-stats-section .progress-stats .stat-value {
    color: #212529 !important;
}

.progress-stats-section .progress-stats .stat-label {
    color: #6c757d !important;
}

.input-group label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #e91e63;
}

/* Buttons */
.btn-primary {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #c2185b;
}

/* Progress Section */
.progress-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.progress-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.progress-section .section-header i {
    color: #e91e63;
    font-size: 16px;
}

.progress-section p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.tab i {
    font-size: 14px;
    color: #6c757d;
}

.tab span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.tab.active {
    border-bottom-color: #e91e63;
}

.tab.active i,
.tab.active span {
    color: #e91e63;
}

/* Progress Content */
.progress-content {
    text-align: center;
}

.progress-icon {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.progress-icon i {
    font-size: 32px;
    color: #6c757d;
}

.progress-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Workout Section */
.workout-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.workout-section .section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000 !important;
    background: none !important;
    border: none !important;
}

.workout-section .section-header i {
    color: #e91e63;
    font-size: 16px;
}

.workout-section p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.workout-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.workout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.workout-icon {
    width: 40px;
    height: 40px;
    background-color: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workout-icon i {
    color: #e91e63;
    font-size: 16px;
}

.workout-details {
    flex: 1;
}

.workout-details h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.workout-details p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

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

.workout-status i {
    font-size: 20px;
    color: #e91e63;
}

/* Fix any white text issues in workout sections */
.workout-section * {
    color: inherit !important;
}

.workout-section h2,
.workout-section h3,
.workout-section p,
.workout-section span,
.workout-section div {
    color: #000 !important;
}

.workout-section .workout-icon {
    background-color: #e91e63;
}

.workout-section .workout-icon i {
    color: white !important;
}

.workout-status .fa-circle {
    color: #dee2e6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    padding: 8px 0 12px 0;
    z-index: 1000;
    box-sizing: border-box;
    overflow-x: hidden;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    min-width: 0;
    max-width: 20%;
    text-align: center;
}

.nav-item i {
    font-size: 18px;
    color: #6c757d;
    line-height: 1;
    display: block;
}

.nav-item span {
    font-size: 9px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1;
    display: block;
}

.nav-item.active i,
.nav-item.active span {
    color: #e91e63;
}

.nav-item:hover {
    text-decoration: none;
    color: inherit;
}

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
    .bottom-nav {
        padding: 4px 0 8px 0;
    }
    
    .nav-item {
        padding: 1px;
        gap: 0;
    }
    
    .nav-item i {
        font-size: 14px;
    }
    
    .nav-item span {
        font-size: 7px;
    }
}

/* iPhone 12/13/14 standard */
@media (max-width: 390px) and (min-width: 376px) {
    .bottom-nav {
        padding: 5px 0 9px 0;
    }
    
    .nav-item {
        padding: 2px 1px;
        gap: 1px;
    }
    
    .nav-item i {
        font-size: 15px;
    }
    
    .nav-item span {
        font-size: 8px;
    }
}

/* iPhone 12/13/14 Pro Max and larger */
@media (max-width: 430px) and (min-width: 391px) {
    .bottom-nav {
        padding: 6px 0 10px 0;
    }
    
    .nav-item {
        padding: 3px 2px;
        gap: 2px;
    }
    
    .nav-item i {
        font-size: 16px;
    }
    
    .nav-item span {
        font-size: 9px;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        width: 100vw;
        overflow-x: hidden;
    }
    
    .main-content {
        padding: 16px 12px;
        box-sizing: border-box;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .overview-item {
        padding: 12px;
        min-height: 70px;
    }
    
    .overview-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 14px;
    }
    
    /* Enhanced Welcome Responsive */
    .welcome-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .welcome-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .quick-stat {
        flex: 1;
        padding: 10px 12px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Quick Actions Responsive */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .quick-action-btn i {
        font-size: 18px;
    }
    
    .quick-action-btn span {
        font-size: 10px;
    }
    
    /* Section Headers Responsive */
    .section-header h2 {
        font-size: 16px;
    }
    
    .section-header i {
        font-size: 14px;
    }
    
    /* Enhanced Welcome Mobile */
    .welcome-text h2 {
        font-size: 20px;
    }
    
    .welcome-text p {
        font-size: 13px;
    }
    
    /* Quick Actions Mobile */
    .quick-action-btn {
        min-height: 65px;
    }

    .quick-action-btn i {
        font-size: 16px;
    }

    .quick-action-btn span {
        font-size: 9px;
    }

    .measurement-row {
        margin-bottom: 12px;
    }

    .input-with-unit input {
        padding: 10px 14px;
        font-size: 16px;
    }

    .unit {
        right: 14px;
        font-size: 13px;
    }

    .header {
        padding: 16px 12px 8px;
    }

    .bottom-nav {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 6px 0 10px 0;
        left: 0;
        right: 0;
        transform: none;
    }

    .nav-item {
        padding: 2px 1px;
        min-width: 0;
        max-width: 18%;
        gap: 1px;
    }

    .nav-item i {
        font-size: 16px;
        line-height: 1;
    }

    .nav-item span {
        font-size: 8px;
        line-height: 1;
        max-width: 100%;
    }
}

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

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Hover Effects */
.tab:hover {
    background-color: #f8f9fa;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.workout-item:hover {
    background-color: #e9ecef;
}