/* ملف styles.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    direction: rtl;
}

.background {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('aa.webp') no-repeat center center/cover;
}

.form-container {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #0056b3;
}

/* تصميم الجدول */
.table-container {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
    color: #333;
}

table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
}

table tr:last-child td {
    border-bottom: none;
}

table td {
    font-size: 0.9em;
    color: #555;
}

/* تحسين الجدول ليكون متجاوبًا */
.table-container {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-x: auto; /* السماح بالتمرير الأفقي */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em; /* تكبير النص قليلاً */
}

table th, table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    table th, table td {
        font-size: 0.8em; /* تقليل حجم النص للأجهزة الصغيرة */
        padding: 8px; /* تقليل التباعد */
    }
}

@media screen and (max-width: 480px) {
    .table-container {
        margin: 10px auto;
        width: 100%; /* جعل الجدول يستخدم العرض الكامل */
    }

    table th, table td {
        font-size: 0.7em; /* تصغير حجم النص أكثر */
        padding: 5px; /* تكييف المسافات */
    }

    table {
        font-size: 0.8em;
    }
}