/* CalWhat Calculator Platform - BMICalculator Specific Styles */
/* This file contains calculator-specific styles */

    .input-group-custom {
        margin-bottom: 12px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        position: relative;
    }

    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #667eea;
        color: white;
        font-size: 0.7rem;
        cursor: help;
        margin-left: 5px;
        position: relative;
    }

        .tooltip-icon:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

    .tooltip-text {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        z-index: 1000;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #2d3748;
        color: white;
        text-align: center;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        white-space: nowrap;
        transition: opacity 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-weight: 400;
    }

        .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #2d3748 transparent transparent transparent;
        }

    .input-wrapper {
        position: relative;
    }

    .form-input {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
    }

        .form-input:focus {
            outline: none;
            border-color: #38a169;
            box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
            transform: translateY(-2px);
        }

    .input-range {
        font-size: 0.75rem;
        color: #2d3748;
        margin-top: 4px;
    }

    .form-input.error {
        border-color: #ef4444;
        animation: shake 0.5s ease;
    }

    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-10px);
        }

        75% {
            transform: translateX(10px);
        }
    }

    .input-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gender-options {
        display: flex;
        gap: 15px;
        margin-top: 8px;
    }

    .gender-option {
        flex: 1;
        position: relative;
    }

        .gender-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .gender-option label {
            display: block;
            padding: 12px;
            border: 2px solid #48bb78;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f0fff4;
            font-family: 'Roboto Mono', monospace;
        }

        .gender-option input[type="radio"]:checked + label {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }

        .gender-option label:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

    .activity-select {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
        cursor: pointer;
    }

        .activity-select:focus {
            outline: none;
            border-color: #38a169;
            box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
        }

    .result-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    @media (min-width: 992px) {
        .result-card {
            position: sticky;
            top: 20px;
        }
    }

    .result-main {
        text-align: center;
        padding: 20px 0;
    }

    .result-label {
        font-size: 1rem;
        font-weight: 500;
        opacity: 0.95;
        margin-bottom: 10px;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 15px;
        animation: pulse 0.5s ease;
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }

    .bmi-category {
        display: inline-block;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .category-underweight {
        background: #60a5fa;
    }

    .category-normal {
        background: #48bb78;
    }

    .category-overweight {
        background: #f59e0b;
    }

    .category-obese {
        background: #ef4444;
    }

    .result-divider {
        border: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.3);
        margin: 20px 0;
    }

    .result-details {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

        .result-item:last-child {
            border-bottom: none;
        }

    .result-item-label {
        font-size: 0.95rem;
        opacity: 0.9;
    }

    .result-item-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
        font-size: 1rem;
    }

    .chart-container {
        position: relative;
        height: 300px;
        margin: 10px 0;
    }

    .bmi-gauge {
        position: relative;
        width: 100%;
        height: 200px;
        margin: 20px 0;
    }

    .gauge-background {
        width: 100%;
        height: 100px;
        background: linear-gradient(to right, #60a5fa 0%, #48bb78 25%, #48bb78 50%, #f59e0b 75%, #ef4444 100%);
        border-radius: 50px 50px 0 0;
        position: relative;
        overflow: hidden;
    }

    .gauge-pointer {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 4px;
        height: 90px;
        background: white;
        transform-origin: bottom center;
        transition: transform 0.5s ease;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

        .gauge-pointer::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 12px solid white;
        }

    .gauge-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 0.8rem;
        color: white;
    }


    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .result-value {
            font-size: 2rem;
        }

        .glass-card {
            padding: 20px;
        }

        .input-row {
            grid-template-columns: 1fr;
        }
    }

    .health-recommendation {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

        .health-recommendation h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .health-recommendation ul {
            margin-left: 20px;
            margin-top: 8px;
        }

            .health-recommendation ul li {
                margin-bottom: 5px;
            }