.bmi-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bmi-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.input-row-horizontal {
    display: flex;
    gap: 20px;
}

.input-row-horizontal .input-section {
    flex: 1;
}

.bmi-title {
    font-size: 22px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.bmi-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bmi-input:focus {
    outline: none;
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.bmi-input::placeholder {
    color: #9ca3af;
}

.bmi-select {
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.bmi-select:focus {
    outline: none;
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.bmi-standard {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
    text-align: left;
}

.standard-title {
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.standard-content {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

.standard-hint {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 8px;
}

.result-panel {
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.result-header {
    margin-bottom: 30px;
}

.result-title {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 15px;
}

.bmi-value {
    font-size: 64px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
    line-height: 1;
}

.bmi--underweight {
    color: #3b82f6;
}

.bmi--normal {
    color: #10b981;
}

.bmi--overweight {
    color: #f59e0b;
}

.bmi--obese {
    color: #ef4444;
}

.bmi--severely-obese {
    color: #991b1b;
}

.result-category {
    font-size: 18px;
    font-weight: 600;
}

.bmi-slider {
    margin-top: 20px;
}

.slider-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    display: flex;
    overflow: visible;
}

.slider-segment {
    height: 100%;
}

.slider-segment--underweight {
    background: #3b82f6;
    border-radius: 4px 0 0 4px;
    width: 46.25%;
}

.slider-segment--normal {
    background: #10b981;
    width: 13.75%;
}

.slider-segment--overweight {
    background: #f59e0b;
    width: 10%;
}

.slider-segment--obese {
    background: #ef4444;
    width: 17.5%;
}

.slider-segment--severely-obese {
    background: #991b1b;
    border-radius: 0 4px 4px 0;
    width: 12.5%;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: left 0.3s ease;
}

.slider-labels {
    position: relative;
    margin-top: 15px;
    height: 20px;
}

.slider-label {
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    transform: translateX(-50%);
}

.slider-label:nth-child(1) { left: 23.125%; }
.slider-label:nth-child(2) { left: 53.125%; }
.slider-label:nth-child(3) { left: 65%; }
.slider-label:nth-child(4) { left: 78.75%; }
.slider-label:nth-child(5) { left: 93.75%; }

@media (max-width: 768px) {
    .bmi-page {
        max-width: 500px;
    }
    
    .bmi-panel {
        padding: 20px;
    }
    
    .input-row-horizontal {
        flex-direction: column;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .bmi-select {
        min-width: auto;
    }
    
    .bmi-value {
        font-size: 48px;
    }
}