.bmi-calculator {
    max-width: 100%;
    margin: 20px auto;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
     margin-top: 20px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
}

.unit-switch {
    margin: 10px 0;
}

.imperial-height, .metric-height {
    display: flex;
    gap: 10px;
}

.imperial-height input, .metric-height input {
    flex: 1;
}

.bmi-button {
    width: 100%;
    padding: 15px;
    background: #225387;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}
.bmi-button:hover {
    background: #000000;
}

.result-container {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: none;
}

.bmi-meter {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bmi-bar {
    height: 100%;
    width: 0;
    transition: all 1s ease;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c);
}

.bmi-result {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.bmi-status {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .bmi-calculator {
        padding: 15px;
    }
    
    input, select {
        padding: 10px;
    }
}