/*
  =================================================================
  فایل استایل اختصاصی محاسبه‌گر آب مورد نیاز بدن
  نسخه: 1.0
  =================================================================
*/

/* --- Checkbox Control --- */
.checkbox-control {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.checkbox-control:hover {
    background-color: #f1f0f7;
}

.checkbox-control input[type="checkbox"] {
    /* Hide the default checkbox */
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkbox-label {
    position: relative;
    padding-right: 30px; /* Space for custom checkbox */
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Custom checkbox marker */
.checkbox-label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-small);
    background-color: white;
    transition: var(--transition-fast);
}

/* Custom checkmark */
.checkbox-label::after {
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 0.9rem;
    color: white;
    transition: transform 0.2s ease-in-out;
}

.checkbox-control input[type="checkbox"]:checked + .checkbox-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-control input[type="checkbox"]:checked + .checkbox-label::after {
    transform: translateY(-50%) scale(1);
}

.checkbox-control input[type="checkbox"]:focus-visible + .checkbox-label::before {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* --- Result Card Styles --- */
.result-card .unit {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: -10px;
    font-weight: bold;
}

.result-breakdown {
    font-size: 0.95rem;
    opacity: 0.9;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    text-align: center;
}
.result-breakdown p {
    margin: 0;
}