/* Fitness Tracker Styles */

/* Hero Section */
.fitness-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.fitness-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="fitness-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="2.5" fill="rgba(255,255,255,0.1)"/><path d="M 12.5 3 L 12.5 22 M 3 12.5 L 22 12.5" stroke="rgba(255,255,255,0.08)" stroke-width="1.5"/><circle cx="5" cy="5" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="20" cy="5" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="5" cy="20" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.06)"/><path d="M 8 8 L 17 17 M 8 17 L 17 8" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23fitness-pattern)"/></svg>');
    opacity: 0.8;
}

.fitness-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.fitness-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.fitness-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fitness-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.fitness-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.fitness-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.fitness-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Fitness Tracker Section */
.fitness-tracker {
    padding: 80px 0;
    background: #f8fafc;
}

/* Tabs */
.tracker-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto 40px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
    color: #667eea;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Tab */
.dashboard-header,
.workout-header,
.progress-header,
.goals-header,
.analytics-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2,
.workout-header h2,
.progress-header h2,
.goals-header h2,
.analytics-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dashboard-header h2 i,
.workout-header h2 i,
.progress-header h2 i,
.goals-header h2 i,
.analytics-header h2 i {
    color: #667eea;
}

.dashboard-header p,
.workout-header p,
.progress-header p,
.goals-header p,
.analytics-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Recent Workouts */
.recent-workouts h3,
.quick-actions h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-workouts h3 i,
.quick-actions h3 i {
    color: #667eea;
}

.workout-list {
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.workout-item {
    padding: 20px;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.workout-item:last-child {
    border-bottom: none;
}

.workout-item:hover {
    background: #f7fafc;
}

.workout-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.workout-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.workout-type-icon.cardio {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.workout-type-icon.strength {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.workout-type-icon.yoga {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #4a5568;
}

.workout-type-icon.sports {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #4a5568;
}

.workout-type-icon.other {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.workout-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.workout-meta {
    font-size: 0.85rem;
    color: #718096;
}

.workout-stats {
    text-align: right;
}

.workout-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 3px;
}

.workout-calories {
    font-size: 0.85rem;
    color: #718096;
}

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.action-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 8px;
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cta-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Workout Form */
.workout-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f7fafc;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #667eea;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group textarea {
    padding: 15px 20px;
    resize: vertical;
    min-height: 100px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #a0aec0;
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}

/* Calorie Info */
.calorie-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.calorie-display {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    text-align: center;
}

.calorie-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Progress Tab */
.progress-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.progress-filters select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.progress-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.chart-container,
.progress-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.chart-container h3,
.progress-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    background: #f7fafc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
    border: 2px dashed #e2e8f0;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.summary-stats {
    display: grid;
    gap: 20px;
}

.summary-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

/* Goals Tab */
.goals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.goal-form,
.goals-list {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.goal-form h3,
.goals-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goal-form h3 i,
.goals-list h3 i {
    color: #667eea;
}

.add-goal-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.add-goal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.goal-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.goal-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-priority.high {
    background: #fed7d7;
    color: #c53030;
}

.goal-priority.medium {
    background: #fbd38d;
    color: #b7791f;
}

.goal-priority.low {
    background: #c6f6d5;
    color: #276749;
}

.goal-progress {
    margin: 15px 0;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 10px;
}

/* Analytics Tab */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.analytics-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-card h3 i {
    color: #667eea;
}

.empty-analytics {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fitness-hero {
        padding: 100px 0 60px;
    }
    
    .fitness-hero-title {
        font-size: 2.5rem;
    }
    
    .fitness-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .tracker-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .progress-charts {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .analytics-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fitness-hero-title {
        font-size: 2rem;
    }
    
    .fitness-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tracker-tabs {
        padding: 5px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 12px 10px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .workout-form {
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .workout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .workout-stats {
        text-align: left;
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.input-group input.error,
.input-group select.error,
.input-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
