/* Main Styles for Fitness App */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

header .navbar-brand i {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 80px 0;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

/* Features Section */
.features .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.features .card:hover {
    transform: translateY(-5px);
}

.features .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Dashboard Styles */
.dashboard-stats .card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 20px;
}

.dashboard-stats .card-body {
    padding: 20px;
}

.dashboard-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

.dashboard-stats .stat-label {
    font-size: 1rem;
    color: #6c757d;
}

/* Profile Styles */
.profile-header {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Training Plan Styles */
.training-plan-card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.training-plan-card .card-header {
    background-color: #f8f9fa;
    border-bottom: none;
    font-weight: 600;
}

.training-day {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.exercise-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

/* Exercise Library Styles */
.exercise-card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-image {
    height: 200px;
    object-fit: cover;
}

.exercise-filters {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Progress Tracking Styles */
.progress-chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.measurement-table th {
    background-color: #f8f9fa;
}

/* Body Measurements Styles */
.measurements-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.progress-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.progress-photo {
    width: calc(33.333% - 10px);
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.progress-photo .photo-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Goals Styles */
.goal-card {
    margin-bottom: 15px;
    border-left: 4px solid #0d6efd;
}

.goal-card.completed {
    border-left-color: #198754;
}

.goal-card.abandoned {
    border-left-color: #dc3545;
}

/* Form Styles */
.form-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Footer Styles */
footer {
    margin-top: 50px;
}

footer h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 15px;
}

footer hr {
    margin: 20px 0;
}

/* Utility Classes */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .progress-photo {
        width: calc(50% - 7.5px);
    }
    
    .progress-photo img {
        height: 150px;
    }
    
    .dashboard-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .features .card {
        margin-bottom: 20px;
    }
    
    .progress-photo {
        width: 100%;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}