.bmi-calculator {
    font-family: var(--font-body);
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.bmi-calculator * {
    box-sizing: border-box;
}

.navigation {
    margin-bottom: 1.25rem;
}

.nav-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.nav-step {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--line-1);
    color: var(--text-secondary-6);
}

.nav-step.active {
    background: var(--navy);
    color: white;
    transform: scale(1.05);
}

.nav-step:hover {
    background: var(--line-3);
}

.nav-step.active:hover {
    background: var(--navy);
}

.nav-line {
    width: 2rem;
    height: 0.125rem;
    margin: 0 0.25rem;
    background: var(--line-1);
    transition: all 0.2s;
}

.nav-line.active {
    background: var(--navy);
}

.nav-labels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.nav-label {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    color: var(--text-secondary-6);
}

.nav-label.active {
    color: var(--navy);
    font-weight: 500;
}

.nav-label:hover {
    color: var(--navy);
    background: var(--bg);
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--navy);
    line-height: 1.2;
}

.section {
    background: white;
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line-1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.section-number {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--red);
    color: white;
    font-family: var(--font-mono);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.input-field {
    padding: 0.75rem;
    border: 1px solid var(--line-3);
    border-radius: var(--radius-m);
    background: var(--field-bg);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.input-field:hover {
    background: var(--field-bg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.input-label {
    font-size: 0.75rem;
    color: var(--text-secondary-6);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary-6);
    pointer-events: none;
}

.unit-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.unit-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-3);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--field-bg);
    color: var(--text-secondary-8);
    flex: 1;
}

.unit-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.unit-btn:hover {
    background: var(--line-1);
}

.unit-btn.active:hover {
    background: var(--navy);
}

.slider-group {
    margin-bottom: 0.75rem;
}

.slider {
    width: 100%;
    height: 0.25rem;
    background: var(--switch-track);
    border-radius: 9999px;
    outline: none;
    border: none;
    cursor: pointer;
    accent-color: var(--red);
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

.result-main {
    background: var(--navy);
    border-radius: var(--radius-l);
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.result-title {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.result-subtitle {
    color: var(--line-3);
    font-size: 0.75rem;
}

.result-category {
    padding: 0.5rem 1rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.result-category.underweight {
    background: rgba(59, 130, 246, 0.2);
}

.result-category.normal {
    background: rgba(34, 197, 94, 0.2);
}

.result-category.overweight {
    background: rgba(251, 191, 36, 0.2);
}

.result-category.obese {
    background: rgba(239, 68, 68, 0.2);
}

.bmi-scale {
    margin-top: 1rem;
}

.scale-bar {
    height: 0.5rem;
    border-radius: 0.25rem;
    background: linear-gradient(to right,
        #3b82f6 0%, #3b82f6 14%,
        #22c55e 14%, #22c55e 40%,
        #fbbf24 40%, #fbbf24 60%,
        #ef4444 60%, #ef4444 100%);
    position: relative;
    margin-bottom: 0.5rem;
}

.scale-indicator {
    position: absolute;
    top: -0.25rem;
    width: 0.75rem;
    height: 1rem;
    background: white;
    border: 2px solid var(--navy);
    border-radius: 0.125rem;
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    color: var(--line-3);
    margin-top: 0.25rem;
}

.info-section {
    margin-top: 1rem;
}

.info-category {
    margin-bottom: 1.5rem;
}

.info-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--navy);
}

.info-list {
    display: grid;
    gap: 0.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--field-bg);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border-left: 4px solid transparent;
}

.info-item.underweight { border-left-color: #3b82f6; }
.info-item.normal { border-left-color: #22c55e; }
.info-item.overweight { border-left-color: #fbbf24; }
.info-item.obese { border-left-color: #ef4444; }

.info-item.current {
    background: var(--navy);
    color: white;
    font-weight: 600;
}

.info-item-name {
    text-align: left;
}

.info-item-range {
    font-weight: 500;
    color: var(--text-secondary-6);
    text-align: right;
}

.info-item.current .info-item-range {
    color: var(--line-3);
}

.health-tips {
    background: var(--field-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-left: 4px solid var(--navy);
}

.health-tips h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.health-tips p {
    font-size: 0.75rem;
    color: var(--text-secondary-6);
    line-height: 1.4;
    margin: 0;
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .bmi-calculator {
        padding: 0.5rem;
    }

    .section {
        padding: 0.75rem;
    }

    .input-field {
        padding: 0.5rem;
    }
}

@media (min-width: 640px) {
    .bmi-calculator {
        max-width: 85vw;
        width: 85%;
    }
}

@media (min-width: 768px) {
    .bmi-calculator {
        max-width: 75vw;
        width: 75%;
    }
}

@media (min-width: 1024px) {
    .bmi-calculator {
        max-width: 65vw;
        width: 65%;
    }
}

@media (min-width: 1280px) {
    .bmi-calculator {
        max-width: 55vw;
        width: 55%;
    }
}
