/**
 * CSS למחשבון הביוץ - איזור ציבורי
 */

/* ========== מאפיינים כלליים ========== */
.ovulation-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Assistant, Alef, Arial, sans-serif;
    color: #333;
    direction: rtl;
}

.ovulation-calculator-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #6a1b9a;
}

/* ========== טופס הזנת נתונים ========== */
.ovulation-calculator-form-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.disclaimer-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ovulation-calculator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.required {
    color: #e91e63;
    margin-right: 5px;
}

/* בורר תאריכים */
.date-picker-wrapper {
    position: relative;
}

.date-picker {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
}

.calendar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../images/calendar-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* אורך מחזור */
.number-input-wrapper {
    display: flex;
    align-items: center;
    height: 46px;
    border: 1px solid #9166AC;
    border-radius: 60px;
    overflow: hidden;
    background-color: #fff;
}
.date-picker-wrapper input {
    border: 1px solid #9166AC;
    border-radius: 94px;
	height: 44px;
}

.number-input-wrapper button {
    width: 46px;
    height: 46px;
    border: none;
    color: #9166AC;
	background: #DFD4EB;
    color: #333;
    font-size: 23px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.number-input-wrapper button:hover {
    background-color: #e0e0e0;
}

.number-input-wrapper input {
    flex: 1;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 16px;
    padding: 0 10px;
}

/* כפתור חישוב */
.submit-group {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.calculate-button {
    background-color: #6a1b9a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
	width: 200px;
    transition: background-color 0.3s;
}

.calculate-button:hover {
    background-color: #4a148c;
}

/* ========== איזור התוצאות ========== */
.ovulation-results {
    margin-top: 40px;
}

/* כרטיסיות תוצאה */
.result-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.result-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-left: 15px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.info-toggle {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border: none;
    background-color: transparent;
    background-image: url('../images/info-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* צבעים לכרטיסיות שונות */
.fertile-window {
    border-right: 4px solid #8bc34a;
}

.ovulation-day {
    border-right: 4px solid #00bcd4;
}

.next-period {
    border-right: 4px solid #e91e63;
}

.pregnancy-test {
    border-right: 4px solid #ff9800;
}

.due-date {
    border-right: 4px solid #9c27b0;
}

/* ========== לוח שנה ========== */
.ovulation-calendar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 40px;
}

.calendar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.nav-button {
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

.current-month {
    margin: 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.calendar-container {
    margin-bottom: 20px;
    overflow-x: auto;
}

/* עיצוב טבלת לוח השנה */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    width: 14.28%;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.calendar-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.calendar-table td {
    height: 50px;
    font-size: 16px;
    position: relative;
    transition: background-color 0.2s;
}

.calendar-table td.empty {
    background-color: #f9f9f9;
}

/* צביעת ימים מיוחדים */
.calendar-table td.fertile {
    background-color: rgba(139, 195, 74, 0.2);
}

.calendar-table td.ovulation {
    background-color: rgba(0, 188, 212, 0.3);
    font-weight: 700;
}

.calendar-table td.period {
    background-color: rgba(233, 30, 99, 0.2);
}

.calendar-table td.pregnancy-test {
    background-color: rgba(255, 152, 0, 0.2);
}

/* מקרא */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-left: 8px;
}

.legend-color.fertile {
    background-color: rgba(139, 195, 74, 0.5);
}

.legend-color.ovulation {
    background-color: rgba(0, 188, 212, 0.5);
}

.legend-color.period {
    background-color: rgba(233, 30, 99, 0.5);
}

.legend-color.pregnancy-test {
    background-color: rgba(255, 152, 0, 0.5);
}

.legend-text {
    font-size: 14px;
    color: #666;
}

/* כפתורי ייצוא */
.export-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.export-button {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.export-button:hover {
    background-color: #e0e0e0;
}

.button-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.button-icon.pdf {
    background-image: url('../images/pdf-icon.svg');
}

/* ========== מידע על תהליך הביוץ ========== */
.ovulation-info {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.info-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.info-content p {
    margin-bottom: 15px;
}

.info-disclaimer {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    line-height: 1.5;
}

/* ========== התאמה למובייל ========== */
@media (max-width: 767px) {
    .ovulation-calculator-title {
        font-size: 24px;
    }

    .ovulation-calculator-form {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        flex: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .result-cards {
        flex-direction: column;
    }

    .result-card {
        flex: none;
        width: 100%;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 8px 5px;
        font-size: 14px;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }

    .legend-item {
        margin-left: 0;
    }
}

/* ========== אנימציות ואפקטים ========== */
.loading-spinner {
    text-align: center;
    margin-top: 10px;
    color: #6a1b9a;
    font-weight: 600;
}

/* סטיילים לשיפור נראות הדייטפיקר בעברית */
.ui-datepicker {
    direction: rtl;
    font-family: Assistant, Alef, Arial, sans-serif;
}

.ui-datepicker-header {
    background-color: #6a1b9a;
    color: #fff;
}

.ui-datepicker-calendar th {
    padding: 5px;
}

.ui-datepicker-calendar td {
    padding: 0;
}

.ui-datepicker-calendar .ui-state-default {
    text-align: center;
    padding: 5px;
    display: block;
}

.ui-datepicker-calendar .ui-state-active {
    background-color: #6a1b9a;
    color: #fff;
}

.ui-datepicker-trigger {
    margin-right: 10px;
}