.calorie-calculator {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calorie-calculator h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="number"], select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results h4 {
    margin-top: 0;
    color: #27ae60;
    text-align: center;
}

.bmr-section, .tdee-section {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #ecf0f1;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.bmr-section label, .tdee-section label {
    color: #2c3e50;
    margin: 0;
}

.goals-section {
    margin-top: 1.5rem;
}

.goals-section h5 {
    text-align: center;
    color: #34495e;
    margin-bottom: 1rem;
}

.goal {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.goal.maintenance {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
}

.goal.loss {
    background: #fdeaea;
    border-left: 4px solid #e74c3c;
}

.goal.gain {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .calorie-calculator {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}
