/* استدعاء خط جميل من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* تنسيق عام للصفحة */
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl; /* جعل الصفحة من اليمين إلى اليسار */
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* صندوق رئيسي لاحتواء المحتوى */
.container {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%; /* اجعلها متجاوبة */
    text-align: center;
}

/* عنوان الصفحة */
h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

/* تنسيق النموذج */
label {
    font-size: 18px;
    display: block;
    margin: 10px 0;
}

/* إدخال النص */
input[type="text"] {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    text-align: center;
    width: 95%;
}

/* الأزرار */
button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 10px;
}
/* زر التنقل بين الصفحات */
.nav-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    background-color: #007bff; /* لون أزرق */
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
}
/* تكبير المسافة بين زر عرض السجلات والفورم */
.spacing {
    margin-right: 30px; /* زيادة المسافة */
    display: inline-block; /* الحفاظ على تنسيقه */
}

.nav-button:hover {
    background-color: #0056b3; /* أزرق داكن عند التمرير */
}
/* تحسين تنسيق الأزرار */
button {
    margin-top: 10px; /* إبعاد الأزرار عن بعضها */
}

/* إضافة مسافة بين زر الحضور والانصراف */
button + button {
    margin-left: 10px; /* مسافة بين الأزرار */
}


/* ألوان الأزرار */
button:nth-child(2) { /* زر الحضور */
    background-color: #4CAF50;
    color: white;
}

button:nth-child(3) { /* زر الانصراف */
    background-color: #F44336;
    color: white;
}

/* زر مسح السجلات */
button:last-child {
    background-color: #ff9800;
    color: white;
}

/* تأثير عند تمرير الماوس */
button:hover {
    opacity: 0.8;
}

/* تنسيق الجدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* رأس الجدول */
th {
    background-color: #4e54c8;
    padding: 10px;
    font-size: 16px;
}

/* صفوف الجدول */
td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* ألوان صفوف متناوبة */
tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* رابط العودة */
.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #00c9ff;
    font-size: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

/* تحسين التجاوب للشاشات الصغيرة */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        border-radius: 10px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    label, input, button {
        font-size: 14px;
    }
    
    table {
        font-size: 12px;
    }
}
