/* קונטיינר ראשי למחשבון המרת נפח */
#volume-converter {
    max-width: 50%; /* רוחב מרבי מוקטן */
    width: 100%; /* רוחב מלא בתוך המקסימום - הופך אותו לרספונסיבי */
    margin: 25px auto; /* ריווח עליון ותחתון, ומרכוז המחשבון בדף */
    padding: 25px; /* ריפוד פנימי */
    border: 1px solid #999; /* גבול דק למסגרת */
    border-radius: 15px; /* פינות מעוגלות */
    background-color: #e0e0e0; /* צבע הרקע */
}

/* כותרת המחשבון */
#volume-converter h2 {
    text-align: center;
    color: #0056b3; /* כחול כהה */
    margin-bottom: 15px;
    font-size: 1.5em; /* גודל כותרת */
    font-weight: bold;
    line-height: 1em; /* גובה שורה */
}

/* כפתור חישוב */
#convertButton { /* Blue */
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #007bff, #0056b3); /* גרדיאנט כחול */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px; /* נשמר כדי לשמור על מרווח מהשדות */
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
    font-weight: bold;
}
#swapButton { /* Grey */
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #6C757D, #687178); /* גרדיאנט כחול */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px; /* נשמר כדי לשמור על מרווח מהשדות */
    box-shadow: 0 4px 10px rgba(95,102,109,0.3);
    font-weight: bold;
}
#convertButton:hover { /* Blue */
    background: linear-gradient(45deg, #0056b3, #003f7f); /* גרדיאנט כהה יותר בהובר */
    box-shadow: 0 6px 15px rgba(0,123,255,0.4);
    transform: translateY(-2px); /* אפקט קל של הרמה */
}
#swapButton:hover { /* Grey */
    background: linear-gradient(45deg, #687178, #5F666D); /* גרדיאנט כהה יותר בהובר */
    box-shadow: 0 6px 15px rgba(95,102,109,0.4);
    transform: translateY(-2px); /* אפקט קל של הרמה */
}

/* קבוצת שדה קלט (לייבל + אינפוט) */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: flex; /* הפוך את הלייבל לקונטיינר Flexbox */
    align-items: center; /* יישר את התוכן במרכז אנכית */
    justify-content: flex-start; /* יישור להתחלה (ימין ב-RTL) */
    margin-bottom: 7px;
    font-weight: 600; /* עובי גופן */
    color: #444;
    font-size: 1em; /* גודל פונט */
}
.form-group input[type="text"], .form-group input[type="number"], .form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px; /* פינות מעוגלות */
    box-sizing: border-box;
    font-size: 1em;
    background-color: #ffffff; /* רקע לבן לשדות ההזנה */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus, .form-group input[type="number"]:focus, 
.form-group input[type="date"]:focus, .form-group select:focus { 
    border-color: #007bff; /* צבע גבול בפוקוס */
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25); /* צל בפוקוס */
    outline: none; /* הסרת קו מתאר ברירת מחדל */
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
input[type="text"], /* שינוי ל-text כדי לאפשר פסיקים */
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px; /* הגדלת מרווח תחתון */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}
button {
    width: 100%;
    padding: 12px; /* הגדלת ריפוד לכפתורים */
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease; /* אנימציית מעבר לרקע */
}
#volumeResults {
    display: none;
    margin-top: 25px; /* הגדלת מרווח עליון */
    border: 2px solid #007bff;
    padding: 15px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* צל פנימי לתוצאות */
    line-height: 1.6; /* רווח שורות לשיפור קריאות */
}
#volumeResults div:first-child {
    margin-bottom: 10px;
}
#volumeResults div:first-child + div {
    font-size: 1.3em; /* הגדלת גודל גופן לתוצאה הראשית */
    color: #0056b3; /* שינוי גוון כחול לתוצאה הראשית */
}
@media (max-width: 800px) {
    #volume-converter {
        margin: 10px auto;
        padding: 20px;
        border-radius: 10px;
        max-width: 100%;
    }
    #volume-converter h2 {
        font-size: 1.5em; 
        margin-bottom: 15px;
    }
    #calcBtn-blue, #calcBtn-grey { 
        padding: 10px 15px;
        font-size: 1em;
        margin-top: 15px;
    }
    .form-group label {
        font-size: 0.9em; /* קטן יותר במובייל */
    }
    .form-group input[type=\"text\"],
    .form-group select { /* השארת select גם כאן */
        padding: 8px;
        font-size: 0.9em; /* קטן יותר במובייל */
    }
    .results h3 {
        font-size: 1.3em; /* קטן יותר במובייל */
        margin-bottom: 10px;
    }
}
