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

/* Theme variables: modern professional dark palette */
:root {
    --bg: #0f172a; /* dark background */
    --panel: #1e293b; /* dark sidebar */
    --card: #334155; /* dark slate cards */
    --muted: #94a3b8; /* light secondary text */
    --text: #f1f5f9; /* light text */
    --accent: #3b82f6; /* professional blue */
    --accent-2: #10b981; /* success green */
    --warn: #f59e0b;
    --danger: #ef4444;
    --glass: rgba(255,255,255,0.1);
    --border: #475569;
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    background: var(--panel);
    color: #ffffff;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.main-menu h3,
.account-section h3 {
    padding: 0 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}

.nav-menu,
.account-menu {
    list-style: none;
}

.nav-menu li,
.account-menu li {
    margin-bottom: 8px;
}

.nav-menu a,
.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1;
}

.nav-menu a:hover,
.nav-menu a.active,
.account-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-right: 3px solid var(--accent);
}

.expandable .expand-toggle {
    position: relative;
}

.expandable .expand-toggle i {
    transition: transform 0.3s ease;
}

.expandable.expanded .expand-toggle i {
    transform: rotate(180deg);
}

.sub-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.1);
}

.expandable.expanded .sub-menu {
    max-height: 200px;
}

.sub-menu a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
}

.account-section {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.top-header h1 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Accessibility utility */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Dashboard Sections */
.progress-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.progress-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.progress-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.continue-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
}

.fitness-goals-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 2rem;
}

.fitness-goals-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.fitness-goals-section p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.goals-btn {
    background: var(--accent-2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.goals-btn:hover {
    transform: translateY(-2px);
}

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

.stat-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-content p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.stat-content span {
    font-weight: 600;
    color: var(--text);
}

.my-exercises-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.my-exercises-section h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.exercise-item span:first-child {
    font-weight: 600;
    color: #1e293b;
}

.exercise-item span:last-child {
    color: #64748b;
    font-size: 0.9rem;
}
/* Hidden utility */
.hidden {
    display: none !important;
}

/* Exercise Page Styles */
.exercise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.category-card h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.exercise-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Run Tracker Page Styles */
.run-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.run-history {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.run-history h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.run-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 4px solid var(--accent-2);
}

/* Calendar Page Styles */
.calendar-header {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.calendar-day {
    background: var(--panel);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    color: var(--text);
}

.workout-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.workout-dot.upper { background: #667eea; }
.workout-dot.lower { background: #f093fb; }
.workout-dot.cardio { background: #10b981; }
.workout-dot.rest { background: #94a3b8; }

.calendar-legend {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calendar-legend .legend-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.calendar-legend h4 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.upper { background: #667eea; }
.dot.lower { background: #f093fb; }
.dot.cardio { background: #10b981; }
.dot.rest { background: #94a3b8; }

/* Professional UI Enhancements */

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--glass) 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warn); }
.toast.info { border-left: 4px solid var(--accent); }

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 18, 38, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    color: var(--text);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--glass);
    color: var(--text);
}

.modal-body {
    padding: 2rem;
}

/* Analytics Styles */
.analytics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.time-range-selector {
    display: flex;
    gap: 0.5rem;
}

.range-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.range-btn:hover {
    background: var(--glass);
    color: var(--text);
}

.range-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.export-controls {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    padding: 8px 16px;
    background: var(--accent-2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.export-btn:hover {
    background: #06a887;
    transform: translateY(-1px);
}

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.tooltip:hover::after {
    opacity: 1;
}

.help-btn {
    padding: 8px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn:hover {
    background: #2563eb;
}

/* Metrics Overview */
.metrics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.metric-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: 12px;
}

.metric-content h3 {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: var(--danger);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

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

.chart-header h3 {
    color: var(--text);
    margin: 0;
}

.chart-controls select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.chart-container canvas {
    max-height: 300px;
}

/* Detailed Analytics */
.detailed-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.analytics-card h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.insight-item,
.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.insight-icon,
.recommendation-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 8px;
    flex-shrink: 0;
}

.insight-content h4,
.recommendation-content h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.insight-content p,
.recommendation-content p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Goal Progress */
.goal-progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.goal-info {
    flex: 1;
}

.goal-info h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.goal-info span {
    color: var(--muted);
    font-size: 0.8rem;
}

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

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

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

/* Nutrition Styles */
.nutrition-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.daily-summary {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.macro-rings {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.macro-ring {
    position: relative;
}

.ring-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0deg 234deg, var(--border) 234deg 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-chart::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--card);
    border-radius: 50%;
}

.ring-value,
.ring-label {
    position: relative;
    z-index: 1;
}

.ring-value {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.ring-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.macro-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.macro-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.macro-color.carbs { background: var(--accent); }
.macro-color.protein { background: var(--accent-2); }
.macro-color.fat { background: var(--warn); }

.macro-name {
    color: var(--muted);
    font-size: 0.9rem;
    min-width: 60px;
}

.macro-value {
    color: var(--text);
    font-weight: 600;
    min-width: 50px;
}

.macro-percentage {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Quick Add */
.quick-add {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.quick-add-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-btn {
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Meal Planning */
.meal-planning {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meal-section {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.meal-header h3 {
    color: var(--text);
    margin: 0;
}

.meal-calories {
    color: var(--accent);
    font-weight: 600;
}

.meal-items {
    margin-bottom: 1rem;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass);
}

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

.food-name {
    color: var(--text);
    font-size: 0.9rem;
}

.food-calories {
    color: var(--muted);
    font-size: 0.8rem;
}

.add-food-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-food-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Water Tracking */
.water-tracking {
    margin-bottom: 2rem;
}

.water-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.water-progress {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.water-bottle {
    width: 60px;
    height: 200px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    transition: height 0.3s ease;
    border-radius: 0 0 26px 26px;
}

.water-amount {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    z-index: 1;
}

.water-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.water-btn {
    padding: 10px 20px;
    background: var(--accent-2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.water-btn:hover {
    background: #06a887;
    transform: translateY(-1px);
}

/* Nutrition Insights */
.nutrition-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.insights-card,
.meal-suggestions {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.suggestion-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-content {
    flex: 1;
}

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

.suggestion-content p {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.suggestion-calories {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
}

.add-suggestion-btn {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .nutrition-overview {
        grid-template-columns: 1fr;
    }
    
    .nutrition-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .metrics-overview {
        grid-template-columns: 1fr;
    }
    
    .meal-planning {
        grid-template-columns: 1fr;
    }
    
    .analytics-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .macro-rings {
        flex-direction: column;
        text-align: center;
    }
    
    .water-progress {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-menu a:focus,
.account-menu a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255,255,255,0.3);
        --glass: rgba(255,255,255,0.1);
    }
}

/* Print styles */
@media print {
    .sidebar,
    .export-controls,
    .quick-add,
    .water-controls {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
.dot.cardio { background: #10b981; }
.dot.rest { background: #94a3b8; }
/* Professional Dashboard Enhancements */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-stat {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quick-stat i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

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

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.activity-time {
    color: #64748b;
    font-size: 0.85rem;
}

.activity-desc {
    font-weight: 500;
    color: #1e293b;
}

.activity-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Exercise Page Enhancements */
.workout-header {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.start-workout-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty.beginner { background: #dcfce7; color: #166534; }
.difficulty.intermediate { background: #fef3c7; color: #92400e; }
.difficulty.advanced { background: #fecaca; color: #991b1b; }

.exercise-info {
    display: flex;
    flex-direction: column;
}

.exercise-name {
    font-weight: 600;
    color: #1e293b;
}

.exercise-target {
    font-size: 0.8rem;
    color: #64748b;
}

.exercise-sets {
    font-weight: 600;
    color: #667eea;
}

/* Run Tracker Enhancements */
.run-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.start-run-btn, .track-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-run-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.track-btn {
    background: var(--card);
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.stat-card.featured {
    grid-column: span 2;
}

.run-map {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.route-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.map-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.weekly-chart {
    height: 80px;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    height: 100%;
    gap: 4px;
}

.bar {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    min-height: 4px;
}

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

.goals-card, .achievements-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.goals-card h3, .achievements-card h3 {
    color: var(--text);
    font-weight: 600;
}

.goals-card .goal-item span,
.achievements-card .achievement-item span {
    color: var(--text);
    font-weight: 500;
}

.goal-item {
    margin-bottom: 1rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.goal-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.goal-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--panel);
    border-radius: 6px;
}

.achievement-item i {
    color: var(--warn);
}

.run-item.detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.run-info {
    display: flex;
    flex-direction: column;
}

.run-title {
    font-weight: 600;
    color: #1e293b;
}

.run-location {
    font-size: 0.8rem;
    color: #64748b;
}

.run-stats-mini {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Calendar Enhancements */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.calendar-controls h3 {
    color: var(--text);
    font-weight: 600;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    border-radius: 4px;
}

.nav-btn:hover {
    background: #f1f5f9;
}

.add-workout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-container {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--panel);
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    border-right: 1px solid var(--border);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 120px;
    padding: 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--card);
    color: var(--text);
}

.calendar-day.active {
    background: var(--panel);
    border-color: var(--accent);
}

.day-number {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.workout-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.workout-time {
    font-size: 0.75rem;
    color: #64748b;
}

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

.today-schedule {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.today-schedule h3 {
    color: var(--text);
    font-weight: 600;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--panel);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.schedule-time {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
}

.schedule-workout {
    display: flex;
    flex-direction: column;
}

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

.workout-duration {
    font-size: 0.8rem;
    color: var(--muted);
}
.route-visualization {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-path {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 6px;
    background: white;
    border-radius: 3px;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.start-marker, .end-marker {
    position: absolute;
    background: #10b981;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.start-marker {
    top: 30px;
    left: 30px;
}

.end-marker {
    bottom: 30px;
    right: 30px;
    background: #ef4444;
}
/* Modern Professional Enhancements */

/* Notifications Panel */
.notifications-panel {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.notifications-panel h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--panel);
    border-radius: 8px;
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.notification-item.new {
    border-left-color: var(--accent-2);
    background: var(--card);
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.notification-title {
    font-weight: 600;
    color: var(--text);
}

.notification-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

.notification-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Exercise Filters */
.exercise-filters {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.exercise-filters h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--muted);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.weather-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #c6d3e6;
}
.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(3,7,18,0.6);
}
.condition {
    font-size: 1.1rem;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.weather-details span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Habit Tracker */
.habit-tracker {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.habit-tracker h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.habit-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.habit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--panel);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.habit-item:hover {
    background: var(--card);
}

.habit-item.completed {
    background: var(--card);
    border-left: 4px solid var(--accent-2);
}

.habit-item i:first-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.habit-item.completed i:first-child {
    background: #10b981;
    color: white;
}

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

.habit-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.habit-item.completed .habit-status {
    background: #10b981;
    color: white;
}

.habit-item:not(.completed) .habit-status {
    background: #ef4444;
    color: white;
}
/* Information Page Styles */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-card, .fitness-info-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.profile-card h3, .fitness-info-card h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.profile-details, .fitness-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item .label {
    font-weight: 600;
    color: var(--muted);
}

.detail-item .value {
    color: var(--text);
    font-weight: 500;
}

.health-metrics {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.health-metrics h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.metric-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-card i {
    font-size: 2rem;
    color: #667eea;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Settings Page Styles */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.settings-card h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.setting-input, .setting-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-input:focus, .setting-select:focus {
    outline: none;
    border-color: #667eea;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

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

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

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

input:checked + .slider {
    background-color: #667eea;
}

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

.save-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

.danger-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}