/* BMI Calculator Premium Styling */
.bmi-calculator-area {
    background-color: #0c0e10;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bmi-calculator-area::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(244, 30, 30, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.bmi-calculator-area::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(244, 30, 30, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.bmi-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bmi-title-area {
    margin-bottom: 40px;
}

.bmi-form-group {
    margin-bottom: 25px;
}

.bmi-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bmi-label {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bmi-inline-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3px;
}

.bmi-inline-toggle button {
    border: none;
    background: transparent;
    color: #888;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.bmi-inline-toggle button.active {
    background: #f41e1e;
    color: #fff;
}

.bmi-input-field-wrap {
    width: 100%;
}

.bmi-input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
}

.bmi-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.bmi-input:focus {
    outline: none;
    border-color: #f41e1e;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(244, 30, 30, 0.2);
}

.bmi-btn {
    width: 100%;
    background: #f41e1e;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.bmi-btn:hover {
    background: #d31919;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 30, 30, 0.4);
}

.bmi-result-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 30, 30, 0.1) 0%, rgba(244, 30, 30, 0.02) 100%);
}

/* BMI Gauge Styles */
.bmi-gauge-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.bmi-gauge {
    position: relative;
    width: 260px;
    height: 130px;
    /* Half of width for semi-circle */
    overflow: hidden;
}

.gauge-arc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    /* Full circle */
    border-radius: 50%;
    background: conic-gradient(from -90deg,
            #3498db 0deg 45deg,
            /* Underweight */
            #2ecc71 45deg 135deg,
            /* Healthy */
            #f1c40f 135deg 180deg,
            /* Overweight */
            #e74c3c 180deg 360deg
            /* Obese */
        );
    mask: radial-gradient(circle at 50% 50%, transparent 70%, black 71%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 70%, black 71%);
}

.gauge-marker {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 90%;
    background: #fff;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    /* Start at leftmost point */
    border-radius: 4px;
    z-index: 5;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gauge-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
}

.gauge-labels {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
}

.bmi-value-display {
    text-align: center;
}

.bmi-value {
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bmi-status {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f41e1e;
    margin-bottom: 20px;
}

.bmi-message {
    color: #bbb;
    font-size: 16px;
    text-align: center;
    max-width: 300px;
}

@media (max-width: 991px) {
    .bmi-result-card {
        margin-top: 30px;
        padding: 40px;
    }
}