/* Weight Management Page Styles */

/* Hero Section */
.weight-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1535914254981-b5012eebbd15?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.weight-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.weight-hero p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* BMI Calculator Section */
.bmi-calculator {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.bmi-calculator h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.calculator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.calculator-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-box {
    text-align: center;
    margin-bottom: 2rem;
}

#bmi-result {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin: 0.5rem 0;
}

.category {
    font-weight: bold;
    font-size: 1.1rem;
}

.bmi-scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 0.5rem;
    text-align: center;
}

.scale-item {
    padding: 0.8rem 0.5rem;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
}

.scale-item span {
    font-weight: bold;
    display: block;
    margin-bottom: 0.3rem;
}

.underweight {
    background-color: #3498db;
}

.normal {
    background-color: #2ecc71;
}

.overweight {
    background-color: #f39c12;
}

.obese {
    background-color: #e74c3c;
}

/* Strategies Section */
.weight-strategies {
    padding: 4rem 0;
    background-color: white;
}

.weight-strategies h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.strategy-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.strategy-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.strategy-card h3 {
    padding: 1.5rem 1.5rem 0;
    color: #2c3e50;
}

.strategy-card ul {
    padding: 1rem 1.5rem 1.5rem;
    list-style-type: none;
}

.strategy-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.strategy-card li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Progress Tracker Section */
.progress-tracker {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.progress-tracker h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.tracker-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.tracker-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tracker-form .form-group {
    margin-bottom: 1.5rem;
}

.tracker-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.tracker-form input,
.tracker-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tracker-form textarea {
    resize: vertical;
    min-height: 60px;
}

.tracker-graph {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tracker-history {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tracker-history h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.delete-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .weight-hero h1 {
        font-size: 2rem;
    }
    
    .bmi-scale {
        grid-template-columns: 1fr;
    }
    
    .tracker-container {
        grid-template-columns: 1fr;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}