/* إعدادات عامة */
body {
    background: #f8f9fa; /* خلفية رمادية فاتحة */
    font-family: 'Tajawal', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* الهيدر */
header {
    background: linear-gradient(135deg, #007bff, #0056b3); /* تدرج أزرق */
    border-bottom: 4px solid #dc3545; /* خط أحمر للإسعافات */
    padding: 20px 0;
}

header h1 {
    color: #ffffff; /* العنوان الأبيض */
    font-weight: 700;
    margin: 0;
}

header p.lead {
    color: #e9ecef;
    font-size: 1.25rem;
}

/* البطاقات */
.card {
    border-radius: 15px;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #007bff;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* الأزرار */
.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #b02a37;
}

/* الحقول */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-label {
    font-weight: bold;
    color: #007bff;
}

/* حقل البحث في الواجهة الرئيسية */
.input-group {
    border-radius: 50px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

.table td {
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* التنبيهات */
.alert {
    border-radius: 10px;
    padding: 15px;
}

/* الفوتر */
footer {
    background: #343a40;
    color: #ffffff;
    font-size: 14px;
    padding: 15px 0;
}

/* إحصائيات لوحة التحكم */
.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

/* تحسين الرسوم البيانية */
canvas {
    max-height: 300px;
}

/* تنسيق الأقسام */
section {
    padding: 40px 0;
}

h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* تحسين الـ Grid */
.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6, .col-lg-4, .col-lg-3, .col-lg-6 {
    padding-right: 15px;
    padding-left: 15px;
}

/* تنسيق صفحة تسجيل الدخول */
.card.shadow-lg {
    max-width: 400px;
    margin: 0 auto;
}

/* تحسين التفاعلية */
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* تحسين الخطوط */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
}

/* تحسين التباعد */
.container {
    padding: 0 15px;
}

/* تحسين التوافق مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    .input-group {
        max-width: 100%;
    }

    .display-6 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p.lead {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 20px;
    }
    
    
    section .card {
    border-radius: 20px;
    background: #ffffff;
    padding: 20px;
}

.input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group .form-control {
    border: none;
    padding: 15px;
}

.input-group .btn-primary {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

/* نتائج البحث */
#result .card {
    border-radius: 15px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

#result .card:hover {
    transform: scale(1.02);
}

.btn-success {
    background-color: #28a745;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* تحسين التوافق مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    .input-group .btn-primary {
        padding: 10px 20px;
    }

    #result .card {
        margin: 10px 0;
    }
}
}