@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

*{
    font-family: 'Cairo', sans-serif;
}

.acc-converter-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    font-family: sans-serif;
}
.acc-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap; /* للسماح بالالتفاف على الشاشات الصغيرة */
}
.acc-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 120px; /* لضمان عدم ضغط العناصر بشكل كبير */
}
.acc-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}
.acc-form-group input, .acc-form-group select, .acc-form-group button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.acc-form-group button {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
}
.acc-result-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    font-size: 1.2em;
}

.acc-result-area small{
    display: none;
}

/* === تنسيقات النافذة المنبثقة === */
.acc-modal {
    display: none; /* إخفاء النافذة بشكل افتراضي */
    position: fixed; /* تثبيت الموضع بالنسبة لنافذة العرض */
    z-index: 1000; /* ضمان ظهورها فوق كل العناصر الأخرى */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* إضافة شريط تمرير إذا لزم الأمر */
    background-color: rgba(0,0,0,0.5); /* خلفية سوداء شفافة */
}

.acc-modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* توسيط النافذة عمودياً وأفقياً */
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

/* حركة ظهور النافذة */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.acc-close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.acc-close-button:hover,
.acc-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* زر مخصص لفتح المحول */
.acc-popup-trigger {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.acc-popup-trigger:hover {
    background-color: #005a87;
}