/**
 * CSS למחשבון ההריון - assets/css/pregnancy-calculator.css
 */

/* מיכל ראשי */
.pregnancy-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
    font-family: "Varela Round", Sans-serif;
    background-color: #fdfff5;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* כותרת */
.pregnancy-calculator-title {
    text-align: center;
    margin-bottom: 20px;
    color: #563869;
    font-size: 24px;
}

/* טופס החישוב */
.pregnancy-calculator-form {
    background-color: #fdfff5;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* מתג שיטת חישוב */

.calculation-method-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
    background-color: #fdfff5;
    border-radius: 30px;
}

.method-label {
    margin: 0 0px;
    padding: 8px 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    color: #555;
    position: relative;
    z-index: 2;
}

.method-label.active {
    color: #ffffff;
    font-weight: bold;
    background-color: #9166AC;
    box-shadow: 0 2px 5px rgba(74, 134, 232, 0.3);
}
/* מתג */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border: 2px solid #ccc;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    right: 4px; /* השתנה מ-left ל-right */
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
	background-color: #9166ac;
    border-color: #9166ac;
}

input:focus + .slider {
    box-shadow: 0 0 3px #4a86e8;
}

input:checked + .slider:before {
    transform: translateX(-28px);
}

.slider.round {
    border-radius: 30px;
}

.slider.round:before {
    border-radius: 50%;
}
/* שדות קלט */
.calculation-input {
    display: none;
    margin-bottom: 20px;
}

.calculation-input.active {
    display: block;
    border-top: 3px solid #9166ac;
    padding-top: 15px;
    background-color: #fdfff5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.calculation-input label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.calculation-input input {
    padding: 8px 12px;
    border: 1px solid #9166ac !important;
    border-radius: 90px !important;
    width: 200px;
    text-align: center;
    font-size: 16px;
}

/* כפתור חישוב */
.calculate-button {
    background-color: #4a86e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
button#calculate-pregnancy {
    width: 250px;
}
.calculate-button:hover {
    background-color: #3d78d8;
}

.calculate-button:disabled {
    background-color: #b3b3b3;
    cursor: not-allowed;
}

/* תוצאות */
.pregnancy-result {
    background-color: #fcfef4;
    border-radius: 8px;
    overflow: hidden;
}

.result-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.result-section h3 {
    color: #9166ac;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
	text-align: center;
}

/* שבוע הריון משוער */
.week-display {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.week-number,
.day-number {
    color: #9166ac;
    font-weight: bold;
    font-size: 42px;
}

.plus-sign {
    font-size: 24px;
    color: #9166ac;
    margin: 0 10px;
}

/* תאריך לידה */
.date-display {
    text-align: center;
}

.due-date-value {
    font-size: 32px;
    color: #9166ac;
    font-weight: bold;
}

.days-remaining {
    margin-top: 5px;
    color: #666;
}

/* סרגל התקדמות */
.progress-container {
    margin-top: 10px;
}

.progress-bar-outer {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #9166ac;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-percentage {
    display: block;
    text-align: center;
    color: #9166ac;
    font-weight: bold;
}
img#fetus-image {
    border-radius: 15px;
}
/* מידע על העובר */
.fetus-info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.fetus-image {
    flex: 0 0 150px;
    margin-left: 20px;
    text-align: center;
}

.fetus-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fetus-details {
    flex: 1;
}

.fetus-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.fetus-details li {
    margin-bottom: 5px;
	text-align: center;
}

.fetus-description {
    color: #555;
    line-height: 1.5;
	text-align: center;
}

/* שלבי ההריון */
.stages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stages-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage-title {
    font-weight: bold;
    color: #555;
}

.stage-date {
    color: #9166ac;
    font-weight: bold;
}

/* המלצות שבועיות */
.recommendation-text {
    color: #555;
    line-height: 1.5;
	text-align: center;
}

/* קישור לפוסט */
.post-link {
    display: inline-block;
    color: #4a86e8;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.post-link:hover {
    text-decoration: underline;
}

/* תכנים נוספים */
.additional-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.additional-link {
    display: inline-block;
    background-color: #f1f7ff;
    color: #4a86e8;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.additional-link:hover {
    background-color: #e1eeff;
}

/* רספונסיביות */
@media screen and (max-width: 600px) {
    .fetus-info {
        flex-direction: column;
    }

    .fetus-image {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .stages-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-date {
        margin-top: 5px;
    }
}

div#ui-datepicker-div {
    z-index: 9999 !important;
}
.ui-datepicker-title {
    display: flex !important;
    justify-content: space-between !important;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    padding: .2rem 0.2rem;
}
.pregnancy-calculator-container {
    margin-bottom: 15px;
}