/* assets/css/calculators/bmi-calculator.css */

.bmi-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-header label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.unit-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #f8fafc;
    cursor: pointer;
    color: #334151;
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dual-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dual-input-wrapper {
    position: relative;
}

.dual-input-wrapper input {
    width: 100%;
    padding: 0.8rem;
    padding-right: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

.gender-group {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.gender-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
}

.gender-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    margin-top: 10px;
}

.calc-action-btn:hover {
    transform: translateY(-2px);
}

.result-container {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease;
}

.bmi-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

.bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.bmi-gauge-container {
    position: relative;
    height: 16px;
    background: linear-gradient(to right, #3498db 0% 18.5%, #2ecc71 18.5% 25%, #f1c40f 25% 30%, #e74c3c 30% 100%);
    border-radius: 10px;
    margin: 20px 0;
}

.bmi-marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 32px;
    background: #000;
    border-radius: 2px;
    transition: left 0.5s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
}

.formula-box {
    background: #fff;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin-top: 20px;
    text-align: left;
    border-radius: 0 4px 4px 0;
}

.bmi-table-container {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.bmi-table-title {
    background: #f8fafc;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.bmi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bmi-table th,
.bmi-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.bmi-table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.bmi-table tr:last-child td {
    border-bottom: none;
}

.bmi-table tr.active-row {
    background-color: #eff6ff;
    font-weight: 600;
    border-left: 4px solid var(--primary);
}

.info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.info-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.faq-section {
    margin-top: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}