
.calculator-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.input-section, .output-section {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px; /* רווח בין אלמנטים */
    background-color: #FFFFFF;
}

.input-section {
    border-bottom: 1px solid #d1d1d1;
}


.output-section {
    align-items: center; /* יישור למרכז */
    justify-content: center;
}

.main-title {
    font-size: 2.2em; /* גודל פונט גדול יותר */
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    display: flex;
    flex-direction: column; /* עמודה במובייל */
    align-items: flex-start; /* יישור לשמאל */
    gap: 8px; /* רווח קטן בין לייבל לקלט */
}

.form-group label {
    font-weight: 600; /* טקסט לייבל מודגש */
    color: #444;
    font-size: 1.05em;
}


.fld-cal {
    border-radius: .5rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: .5rem .75rem !important;
    transition: all 0.2s !important;
    background: #fff;
}
#currentAmount{
    width: 100%;
}

.ss-content .ss-search input{
    text-align: right;
}
#calculateButton {
    background-color: #0010F7;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 16, 247, 0.3);
    align-self: center;
    width: fit-content;
}

#calculateButton:hover {
    background-color: #000CCF;
    transform: translateY(-2px);
}

#calculateButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 16, 247, 0.4);
}


.results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.result-box {
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* צבעי רקע עדינים לתיבות התוצאה */
#estimatedAmountBox { /* תיבה לסכום משוערך */
    background-color: #eef7ff; /* כחול בהיר מאוד */
}

#percentageChangeBox { /* תיבה לשינוי באחוזים */
    background-color: #f0fff0; /* ירוק בהיר מאוד */
}

.result-label {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    font-size: 2.8em; /* גודל פונט גדול יותר לתוצאה */
    font-weight: bold;
    color: #1a1a1a; /* צבע כהה יותר להדגשה */
    letter-spacing: -0.5px; /* ריווח אותיות קטן */
}

.percentage-change {
    font-size: 2.2em; /* גודל פונט גדול יותר לשינוי באחוזים */
    font-weight: bold;
    color: #1a1a1a; /* צבע כהה יותר להדגשה */
}

@media (min-width: 768px) {
    .input-section {
        border-bottom: none; /* הסרת קו הפרדה תחתון */
        border-right: 1px solid #d1d1d1; /* הוספת קו הפרדה ימני */
    }
    .form-group {
        flex-direction: row; /* שורה בדסקטופ */
        align-items: center; /* יישור למרכז */
    }
    .form-group label {
        min-width: 150px; /* רוחב מינימלי ללייבלים כדי ליישר אותם */
        text-align: left; /* יישור לשמאל בדסקטופ */
    }
    .main-title {
        margin-bottom: 0; /* הסרת מרווח תחתון בכותרת בדסקטופ */
        text-align: right; /* יישור לימין בדסקטופ */
        font-size: 2.5em;
    }
    .results-wrapper {
        flex-direction: row; /* שורה בדסקטופ */
        justify-content: center;
    }
    .result-box {
        margin-top: 0; /* הסרת מרווח עליון בדסקטופ */
    }
}

/* SlimSelect overrides for RTL and styling */
.ss-main {
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
    padding: .5rem .75rem;
    /*width: 100%;*/
    transition: all 0.2s;
    background: #fff;
}

.ss-main .ss-single-selected {
    height: auto !important; /* גובה אוטומטי */
    padding: 10px 12px !important; /* התאמה לריווחים של שדות אחרים */
    font-size: 1em !important;
    color: #333 !important;
}

.ss-main .ss-single-selected .placeholder {
    color: #666 !important;
}

.ss-main .ss-single-selected .ss-deselect {
    display: none; /* הסתר כפתור מחיקה אם לא נחוץ */
}

.ss-main .ss-single-selected .ss-arrow {
    left: 10px; /* מיקום החץ משמאל */
    right: auto;
}

.ss-main .ss-single-selected .ss-arrow::before {
    border-width: 6px 6px 0 6px; /* גודל החץ */
    border-color: #666 transparent transparent transparent;
}

.ss-main.ss-open-below .ss-single-selected .ss-arrow::before {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #666 transparent;
}

.ss-main .ss-content {
    border: 1px solid #a0a0a0 !important;
    border-radius: 8px !important;
    background-color: #f9f9f9 !important;
}

.ss-main .ss-option {
    padding: 10px 12px !important;
    text-align: right;
}

.ss-main .ss-option.ss-highlighted {
    background-color: #e0e0e0 !important;
}

.ss-main .ss-option.ss-selected {
    background-color: #d1e7dd !important; /* ירוק בהיר לבחירה */
    color: #333 !important;
}