/**
 * BMI Calculator Styles
 */

.gth-bmi-calculator .gth-unit-toggle {
    display: flex;
    gap: var(--gth-space-1);
    padding: var(--gth-space-1);
    background: var(--gth-gray-100);
    border-radius: var(--gth-radius-md);
    margin-bottom: var(--gth-space-4);
}

.gth-bmi-calculator .gth-unit-btn {
    flex: 1;
    padding: var(--gth-space-2) var(--gth-space-4);
    font-size: var(--gth-text-sm);
    font-weight: var(--gth-font-medium);
    color: var(--gth-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--gth-radius-sm);
    cursor: pointer;
    transition: all var(--gth-duration-normal) var(--gth-ease-default);
}

.gth-bmi-calculator .gth-unit-btn:hover {
    color: var(--gth-text-primary);
}

.gth-bmi-calculator .gth-unit-btn.active {
    color: var(--gth-text-primary);
    background: var(--gth-bg-card);
    box-shadow: var(--gth-shadow-sm);
}

.gth-bmi-calculator .gth-unit-panel {
    display: none;
}

.gth-bmi-calculator .gth-unit-panel.active {
    display: block;
    animation: gth-fadeIn var(--gth-duration-slow) var(--gth-ease-out);
}

.gth-bmi-calculator .gth-input-suffix {
    display: flex;
    align-items: center;
    padding: 0 var(--gth-space-2);
    font-size: var(--gth-text-sm);
    color: var(--gth-text-secondary);
}

/* BMI Category Badge */
.gth-bmi-category {
    display: inline-block;
    margin-top: var(--gth-space-2);
    padding: var(--gth-space-1) var(--gth-space-3);
    font-size: var(--gth-text-sm);
    font-weight: var(--gth-font-medium);
    border-radius: var(--gth-radius-full);
    color: white;
}

/* BMI Scale */
.gth-bmi-scale {
    position: relative;
    margin: var(--gth-space-6) 0;
    padding: 0 var(--gth-space-2);
}

.gth-bmi-scale-bar {
    display: flex;
    height: 12px;
    border-radius: var(--gth-radius-full);
    overflow: hidden;
}

.gth-bmi-segment {
    flex: 1;
}

.gth-bmi-marker {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: var(--gth-bg-card);
    border: 3px solid var(--gth-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--gth-shadow-md);
    transition: left var(--gth-duration-slow) var(--gth-ease-default);
}

.gth-bmi-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--gth-space-2);
    font-size: var(--gth-text-xs);
    color: var(--gth-text-muted);
}

/* Healthy Range */
.gth-bmi-range {
    margin-top: var(--gth-space-4);
    padding: var(--gth-space-3);
    background: var(--gth-gray-50);
    border-radius: var(--gth-radius-md);
    font-size: var(--gth-text-sm);
    color: var(--gth-text-secondary);
}

@media (max-width: 640px) {
    .gth-bmi-calculator .gth-input-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gth-bmi-calculator .gth-input-row .gth-input {
        flex: 1;
        min-width: 60px;
    }
}
