/* خلفية عامة */
body {
    font-family: "Tahoma", Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    direction: rtl; /* لأن الصفحة بالعربية */
}

/* العنوان */
h2 {
    text-align: center;
    color: #004080;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* رسائل النجاح والخطأ */
p {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
p[style="color:green;"] {
    color: #28a745 !important;
}
p[style="color:red;"] {
    color: #d9534f !important;
}

/* الحاوية للفورم */
form {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* التصنيفات */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* حقول الإدخال */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

/* زر الإضافة */
button {
    width: 100%;
    padding: 10px;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #0066cc;
}
.teacher-list {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.teacher-list h2 {
    text-align: center;
    color: #004080;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
}

table th {
    background: #004080;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}
.teacher-reset {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.teacher-reset h2 {
    text-align: center;
    color: #004080;
    margin-bottom: 20px;
}

.teacher-reset form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.teacher-reset form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.teacher-reset form button {
    width: 100%;
    padding: 10px;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}



table td a:hover {
    opacity: 0.8;
}

table td a[style*="color:#004080"] {
    background: #e6f0ff;
}

table td a[style*="color:#d9534f"] {
    background: #ffe6e6;
}
