/*
  =================================================================
  فایل استایل اختصاصی محاسبه‌گر TDEE (کالری روزانه)
  نسخه: 1.02
  =================================================================
  این فایل فقط شامل استایل‌هایی است که منحصراً برای ابزار
  TDEE استفاده می‌شود.
*/

/* --- Segmented Control for Gender --- */
.segmented-control {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.segmented-control input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--light-text-color);
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.segmented-control label:not(:last-child) {
    border-left: 1px solid var(--border-color); /* For RTL */
}

.segmented-control input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
}

.segmented-control input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--secondary-color);
    outline-offset: -3px;
    z-index: 1;
}

/* --- Select Box for Activity Level --- */
#activity-level {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: var(--font-family-base);
    background-color: white;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%239d4edd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center; /* For RTL */
    background-size: 1em;
    padding-left: 40px; /* Space for the custom arrow */
}

#activity-level:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
    outline: none;
}


/* --- Result Card Specific Styles --- */
.result-card .unit {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: -10px;
}

.result-breakdown {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
}

.goals-section {
    width: 100%;
    margin-top: 10px;
}

.goals-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: var(--border-radius-small);
    margin-bottom: 8px;
}

.goal-item p {
    margin: 0;
    font-size: 0.95rem;
}

.goal-item strong {
    font-size: 1.1rem;
}

.goal-item.loss {
    background-color: rgba(220, 53, 69, 0.2);
    border-right: 4px solid var(--cat-تحلیل-پزشکی);
}
.goal-item.gain {
    background-color: rgba(32, 201, 151, 0.2);
    border-right: 4px solid var(--cat-تغذیه-و-وزن);
}