.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.input-section, .result-section {
    flex: 1;
    min-width: 300px;
}

.result-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    width: 1%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 1rem;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #495057;
    white-space: nowrap;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.bmi-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.bmi-status {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    background-color: #ccc;
}

.bmi-range-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bmi-range-table th, .bmi-range-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.bmi-range-table th {
    background-color: #f1f3f5;
}

.status-underweight { background-color: #3498db; }
.status-normal { background-color: #2ecc71; }
.status-overweight { background-color: #f1c40f; color: #333; }
.status-obese { background-color: #e74c3c; }

@media (max-width: 768px) {
    .calculator-container {
        padding: 15px;
    }
    
    .input-section, .result-section {
        min-width: 100%;
    }
}
