/* -------------------------------- */
/* خط العائلة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* -------------------------------- */
/* إعدادات الصفحة العامة */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    /*background-color: #f3f7fa;*/
            background-color: #ffffff; /* خلفية بيضاء */
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #333;
    animation: fadeInBody 0.7s ease-in-out;
}

/* -------------------------------- */
/* الحركات الأساسية */
@keyframes fadeInBody {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* -------------------------------- */
/* ترويسة */
.header {
    background-color: #1976d2;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.header .subtext {
    font-size: 14px;
    color: #cfd8dc;
    font-weight: normal;
}

/* -------------------------------- */
/* الحاوية الرئيسية */
.container {
    max-width: 1000px;
    width: 90%;
    margin: 30px auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    animation: fadeInUp 0.6s ease;
}

/* -------------------------------- */
/* النماذج */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="date"],
form input[type="file"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #1976d2;
    background-color: #f0f9ff;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
    outline: none;
}

/* -------------------------------- */
/* الأزرار */
button,
input[type="submit"] {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:hover,
input[type="submit"]:hover {
    background-color: #0d47a1;
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* -------------------------------- */
/* الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: right;
}

table th {
    background-color: #1976d2;
    color: white;
    font-weight: bold;
}

/* -------------------------------- */
/* تنبيهات ورسائل */
.alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #ffeeba;
}

/* -------------------------------- */
/* الروابط */
a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

/* -------------------------------- */
/* روابط الإجراءات (لوحة التحكم) */
.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.actions a {
    background-color: #2196f3;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.actions a:hover {
    background-color: #1976d2;
    transform: scale(1.03);
}

.actions a:active {
    transform: scale(0.97);
}

/* -------------------------------- */
/* التذييل */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #777;
    margin-top: 50px;
}

/* -------------------------------- */
/* استجابة الجوال */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 95%;
    }

    form input,
    form select,
    form textarea {
        font-size: 14px;
    }

    button,
    input[type="submit"] {
        font-size: 14px;
        padding: 10px 20px;
    }

    .header {
        font-size: 18px;
    }

    .actions {
        grid-template-columns: 1fr;
    }
}
