/* assets/css/style.css */
body {
    font-family: 'Tajawal', sans-serif; /* استخدام خط عربي جميل */
    background-color: #f8f9fa;
}

/* تخصيص الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s;
}

/*tr{*/
    /*align-items: center;*/
/*    text-align: center*/
/*}*/

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

.sidebar .active {
    background: rgba(255,255,255,0.3);
    font-weight: bold;
}

.main-content {
    margin-right: 260px;
    padding: 20px;
    min-height: 100vh;
}

/* بطاقات الإحصائيات */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: none;
    margin-bottom: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* تنسيق الجداول */
.table-responsive {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* تحسين مظهر الأزرار */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* تأثيرات تفاعلية للحقول */
.form-control:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
}

/* للأجهزة الصغيرة */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        right: -200px;
    }
    .sidebar.active {
        right: 0;
    }
    .main-content {
        margin-right: 0;
    }
}

/* تحسينات إضافية للشريط العلوي والجانبي */

/* الشريط العلوي */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

/* الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1040;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar .sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(-5px);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 30px;
}

.sidebar .nav-link.collapsed .fa-chevron-left {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.sidebar .nav-link:not(.collapsed) .fa-chevron-left {
    transform: rotate(-90deg);
}

.sidebar .collapse .nav-link {
    padding-right: 50px;
    font-size: 0.9rem;
}

/* طبقة التعتيم في الموبايل */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

.sidebar-overlay.active {
    display: block;
}

/* المحتوى الرئيسي */
.main-content {
    transition: margin-right 0.3s;
}

/* للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .sidebar {
        right: -260px;
    }
    .sidebar.active {
        right: 0;
    }
    .main-content {
        margin-right: 0 !important;
    }
}

/* تخصيص شريط التمرير */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* تنسيق القوائم المنسدلة في الشريط العلوي */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
}

/* شارة الإشعارات */
.badge.bg-danger {
    font-size: 0.6rem;
    position: relative;
    top: -8px;
    right: -5px;
}
@media print {
    .navbar { display: none; }
}