/* تنسيق عام للصفحة */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 40px 0 0 20px;
    direction: rtl; /* تعيين الاتجاه من اليمين إلى اليسار */
    text-align: right; /* تعيين المحاذاة إلى اليمين */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* تنسيق الهيدر */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-around; /* تغيير إلى space-between لجعل العناصر موزعة بالتساوي */
    align-items: center;
    position: fixed; /* جعل الـ header ثابتًا */
    top: 0;
    width: 100%;
    z-index: 1000; /* التأكد من أن الـ header فوق جميع العناصر الأخرى */
}

header h1 {
    margin: 0;
}

/* تنسيق الروابط في الهيدر */
nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

/* تنسيق القسم الرئيسي */
main {
    margin-top: auto;
    flex: 1;
    padding: 70px 20px 20px; /* تعويض المساحة التي يشغلها الـ header */
}

/* تنسيق الفورم */
form {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input, form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center; /* تعيين المحاذاة إلى اليمين */
}

form button {
    width: 100%;
    color: white;
    background-color: #333;
    cursor: pointer;
    font-weight: bold;
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center; /* تعيين المحاذاة إلى المركز */
}

form button:hover {
    background-color: #114e35;
    color: white;
}

/* تنسيق الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    
}

table, th, td {
    border: 1px solid #ddd;
    word-wrap: break-word;
    padding: 8px;
}

td {
    text-align: center; /* تعيين المحاذاة إلى اليمين */
}

th {
    background-color: #f4f4f4;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* لتصغير حجم الخط بشكل إضافي عند الحاجة */
.small-font {
    font-size: 10px;
}

/* تنسيق الرسائل الخطأ */
.error {
    color: red;
    margin-bottom: 10px;
    text-align: right; /* تعيين المحاذاة إلى اليمين */
}

/* تنسيق الفوتر */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0; /* ضبط الحشو لجعل الفوتر يبدو أفضل */
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 12px; /* تقليل حجم الخط */
    font-weight: bold;
}

textarea {
    font-size: 20px;
    width: 100%;
}
.buttons-box {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    margin: 0 auto;
    text-align: center;
    background-color: #f0f0f0;
}
.buttons-box button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* تنسيق الإعلانات */
.announcement {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.announcement:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.announcement h2 {
    font-size: 22px;
    color: #0e7a71;
    margin-bottom: 10px;
}

.announcement p {
    font-size: 16px;
    color: #666;
}

.announcement span {
    font-size: 10px;
    color: #10745d;
}

.announcement samp {
    font-size: 16px;
    color: #741030;
}
