.bmi-calculator-container {
    max-width: 450px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bmi-calculator {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 1rem 0;
}

.bmi-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.bmi-subtitle {
    margin: 0 0 2rem 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.bmi-input-group {
    margin-bottom: 1.5rem;
}

.bmi-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.bmi-height-inputs,
.bmi-weight-inputs {
    display: flex;
    gap: 0.5rem;
}

.bmi-height-inputs input,
.bmi-weight-inputs input,
#age,
#gender {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.bmi-height-inputs input:focus,
.bmi-weight-inputs input:focus,
#age:focus,
#gender:focus {
    outline: none;
    border-color: #3498db;
}

#height-unit,
#weight-unit,
#gender {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    min-width: 80px;
}

.bmi-calculate-btn {
    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.2s;
}

.bmi-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.bmi-calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results */
.bmi-results {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    text-align: center;
}

.bmi-result-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bmi-value.underweight { background: linear-gradient(135deg, #f39c12, #e67e22); }
.bmi-value.normal { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.bmi-value.overweight { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.bmi-value.obese { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.bmi-category {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.underweight .bmi-category { color: #f39c12; }
.normal .bmi-category { color: #27ae60; }
.overweight .bmi-category { color: #e74c3c; }
.obese .bmi-category { color: #e74c3c; }

.bmi-interpretation {
    margin: 0 0 1.5rem 0;
    color: #5a6c7d;
    font-size: 1.1rem;
}

.bmi-recommendations {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

.underweight .bmi-recommendations { border-left-color: #f39c12; }
.normal .bmi-recommendations { border-left-color: #27ae60; }
.overweight .bmi-recommendations { border-left-color: #e74c3c; }
.obese .bmi-recommendations { border-left-color: #e74c3c; }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .bmi-calculator {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .bmi-height-inputs,
    .bmi-weight-inputs {
        flex-direction: column;
    }
}
