/* تنسيق عام للجسم */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    direction: rtl; /* لجعل النصوص تظهر من اليمين لليسار */
}

/* تنسيق الحاوية */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* العنوان */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* تنسيق الجدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

/* تنسيق الصور */
td img {
    max-width: 50px;
    height: auto;
    border-radius: 5px;
}

/* تنسيق الروابط */
a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

/* رسائل الخطأ والنجاح */
.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}

/* تنسيق الجداول عند شاشة الجوال */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    td, th {
        padding: 8px;
    }

    h2 {
        font-size: 18px;
    }
}
/* تنسيق عام للجسم */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    direction: rtl; /* لجعل النصوص تظهر من اليمين لليسار */
}

/* تنسيق الحاوية */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* العنوان */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* تنسيق الجدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

/* تنسيق الصور */
td img {
    max-width: 50px;
    height: auto;
    border-radius: 5px;
}

/* تنسيق الروابط */
a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

/* رسائل الخطأ والنجاح */
.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}

/* تنسيق الجداول عند شاشة الجوال */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    td, th {
        padding: 8px;
    }

    h2 {
        font-size: 18px;
    }
}
/* إعدادات اللوحة */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
}

/* الشريط الجانبي */
.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h2 {
    text-align: center;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    background-color: #444;
    margin: 5px 0;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background-color: #555;
}

/* المحتوى الرئيسي */
.main-content {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

/* البطاقات */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    font-size: 18px;
    color: #333;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* الرسوم البيانية */
.charts {
    margin-top: 30px;
}

/* تحسينات التصميم */
h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

