/*
==============================================
ملف CSS مخصص لتنسيقات لوحة التحكم
Dashboard Custom CSS File
==============================================
تم إنشاؤه في: <?php echo date('Y-m-d H:i:s'); ?>
الغرض: إضافة تنسيقات مخصصة لصفحة لوحة التحكم الأساسية
*/

/* ==============================================
   متغيرات الألوان المخصصة
   Custom Color Variables
   ============================================== */
   :root {
    --dashboard-primary: #007bff;
    --dashboard-secondary: #6c757d;
    --dashboard-success: #28a745;
    --dashboard-info: #17a2b8;
    --dashboard-warning: #ffc107;
    --dashboard-danger: #dc3545;
    --dashboard-light: #f8f9fa;
    --dashboard-dark: #343a40;
    
    /* ألوان البطاقات */
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    /* ألوان الحدود */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
}

/* ==============================================
   تنسيقات البطاقات الإحصائية
   Info Boxes Styling
   ============================================== */
.info-box {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.info-box:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.info-box-icon {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-box-content {
    padding: 1rem;
}

.info-box-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0.25rem;
}

/* ==============================================
   تنسيقات الأيقونات
   Icons Styling
   ============================================== */
.info-box-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}

.info-box-icon.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

.info-box-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
}

.info-box-icon.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* ==============================================
   تنسيقات الجداول
   Tables Styling
   ============================================== */
.card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ==============================================
   تنسيقات الأزرار
   Buttons Styling
   ============================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* ==============================================
   تنسيقات الشارات
   Badges Styling
   ============================================== */
.badge {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* ==============================================
   تنسيقات النماذج
   Forms Styling
   ============================================== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--dashboard-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ==============================================
   تنسيقات التنبيهات
   Alerts Styling
   ============================================== */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--card-shadow);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}


/* ==============================================
   تنسيقات الشريط العلوي
   Header Styling
   ============================================== */
.main-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==============================================
   تنسيقات المحتوى الرئيسي
   Main Content Styling
   ============================================== */
.content-wrapper {
    background-color: #f8f9fa;
}

.content-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.content-header h1 {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   تنسيقات متجاوبة
   Responsive Styling
   ============================================== */
@media (max-width: 768px) {
    .info-box {
        margin-bottom: 1rem;
    }
    
    .info-box-number {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* ==============================================
   تنسيقات الرسوم البيانية
   Charts Styling
   ============================================== */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.chart-container canvas {
    border-radius: var(--border-radius);
}

/* ==============================================
   تنسيقات التحميل
   Loading Styling
   ============================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--dashboard-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================================
   تنسيقات مخصصة إضافية
   Additional Custom Styling
   ============================================== */

/* تأثيرات الحركة */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تنسيقات النصوص */
.text-gradient {
    background: linear-gradient(135deg, var(--dashboard-primary), var(--dashboard-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تنسيقات الحدود المخصصة */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--dashboard-primary), var(--dashboard-secondary)) 1;
}

/* ==============================================
   نهاية الملف
   End of File
   ============================================== */


   .dt-container {
    display: flex
;
    padding: 15px;
    align-items: center;
    justify-content: space-between;
}

.nav-pills .nav-link {
    color: #ffffff;
}

.brand-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
}

.font-weight-light {
    font-weight: 500 !important;
    padding: 30px;
}

.table thead th {
    vertical-align: bottom;
    text-align: right;
    border-bottom: 2px solid #dee2e6;
}


label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 400;
    text-align: right;
}

label {
    display: inherit
;
    margin-bottom: 0.5rem;
}

.content-header h1 {
    color: #444444;
    font-weight: 400;
    text-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
}

.arabic h1 {
    font-family: 'Cairo', 'Arial', sans-serif;
    font-weight: 400!important;


}

.nav-pills .nav-link.active, .nav-pills .nav-link:not(.active):hover {
    color: #303030;
}

.nav-pills .nav-link.active .nav-icon, .nav-pills .nav-link:hover .nav-icon {
    color: #2f3032;
}

.table th, .table td {
    padding: 0.45rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.brand-link .brand-image {

    display: none;
}

table.dataTable td, table.dataTable th {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    text-align: right;
}

/* ==============================================
   دعم اللغة العربية - RTL Support
   Arabic Language Support - RTL
   ============================================== */

/* تنسيق محتوى الصفحات للغة العربية */
.content-wrapper {
    direction: rtl;
    text-align: right;
}

/* تنسيق البطاقات */
.card {
    direction: rtl;
    text-align: right;
}

.card-header {
    direction: rtl;
    text-align: right;
}

.card-body {
    direction: rtl;
    text-align: right;
}

/* تنسيق الجداول */
.table {
    direction: rtl;
    text-align: right;
}

.table th,
.table td {
    text-align: right;
    direction: rtl;
}

/* تنسيق النماذج */
.form-group {
    direction: rtl;
    text-align: right;
}

.form-control {
    direction: rtl;
    text-align: right;
}

.form-control:focus {
    direction: rtl;
    text-align: right;
}

/* تنسيق التسميات */
label {
    direction: rtl;
    text-align: right;
    display: block;
}

/* تنسيق الأزرار */
.btn {
    direction: rtl;
    text-align: center;
}

/* تنسيق التنبيهات */
.alert {
    direction: rtl;
    text-align: right;
}

/* تنسيق القوائم */
.nav {
    direction: rtl;
}

.nav-link {
    direction: rtl;
    text-align: right;
}

/* تنسيق البطاقات الإحصائية */
.info-box {
    direction: rtl;
    text-align: right;
}

.info-box-content {
    direction: rtl;
    text-align: right;
}

.info-box-text {
    direction: rtl;
    text-align: right;
}

.info-box-number {
    direction: rtl;
    text-align: right;
}





.main-header .navbar-nav .nav-item:first-child {
    position: relative;
    z-index: 1000;
}

/* تنسيق الشريط العلوي بشكل عام */
.main-header {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header .navbar {
    padding: 0;
}

.main-header .navbar-nav {
    align-items: center;
}





/* تنسيق المحتوى الرئيسي */
.content {
    direction: rtl;
    text-align: right;
}

.content-header {
    direction: rtl;
    text-align: right;
}

.content-header h1 {
    direction: rtl;
    text-align: right;
}

/* تنسيق التصفية والبحث */
.filter-container {
    direction: rtl;
    text-align: right;
}

.dataTables_wrapper {
    direction: rtl;
    text-align: right;
}

.dataTables_filter {
    direction: rtl;
    text-align: right;
}

.dataTables_length {
    direction: rtl;
    text-align: right;
}



/* تنسيق النصوص */
p, span, div {
    font-family: 'Cairo', 'Arial', sans-serif;
}

/* تنسيق العناوين */
h1, h2, h4, h5, h6 {
    direction: rtl;
    text-align: center!important;
}

/* تنسيق النماذج المتقدمة */
.input-group {
    direction: rtl;
}

.input-group-prepend {
    direction: rtl;
}

.input-group-append {
    direction: rtl;
}

/* تنسيق الشارات */
.badge {
    direction: rtl;
    text-align: center;
}

/* تنسيق التقدم */
.progress {
    direction: rtl;
}

.progress-bar {
    direction: rtl;
}

/* تنسيق التبويبات */
.nav-tabs {
    direction: rtl;
}

.nav-tabs .nav-link {
    direction: rtl;
    text-align: right;
}

.tab-content {
    direction: rtl;
    text-align: right;
}

/* تنسيق المودال */
.modal {
    direction: rtl;
}

.modal-header {
    direction: rtl;
    text-align: right;
}

.modal-body {
    direction: rtl;
    text-align: right;
}



/* تنسيق التوجيه */
.breadcrumb {
    direction: rtl;
    text-align: right;
}

.breadcrumb-item {
    direction: rtl;
    text-align: right;
}

/* تنسيق الصفحات */
.pagination {
    direction: rtl;
    text-align: right;
}

.page-link {
    direction: rtl;
    text-align: center;
}

/* تنسيق الإحصائيات */
.stats {
    direction: rtl;
    text-align: right;
}

/* تنسيق الرسوم البيانية */
.chart-container {
    direction: rtl;
}

/* تنسيق التحميل */
.loading-overlay {
    direction: rtl;
    text-align: center;
}

/* تنسيق الأخطاء والرسائل */
.error-message,
.success-message,
.warning-message,
.info-message {
    direction: rtl;
    text-align: right;
}

/* تنسيق الجداول المتقدمة */
.dataTable {
    direction: rtl;
}

.dataTable thead th {
    direction: rtl;
    text-align: right;
}

.dataTable tbody td {
    direction: rtl;
    text-align: right;
}

/* تنسيق الأعمدة */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    direction: rtl;
    text-align: right;
}

/* تنسيق الصفوف */
.row {
    direction: rtl;
}

/* تنسيق الحاويات */
.container,
.container-fluid {
    direction: rtl;
}

/* تنسيق الشبكة */
.grid {
    direction: rtl;
}

/* تنسيق المرونة */
.flex {
    direction: rtl;
}

/* تنسيق الشبكة المرنة */
.d-flex {
    direction: rtl;
}

/* تنسيق التباعد */
.m-0, .m-1, .m-2, .m-3, .m-4, .m-5 {
    direction: rtl;
}

.p-0, .p-1, .p-2, .p-3, .p-4, .p-5 {
    direction: rtl;
}

/* تنسيق الحدود */
.border {
    direction: rtl;
}

/* تنسيق الظلال */
.shadow {
    direction: rtl;
}

/* تنسيق الألوان */
.text-primary,
.text-secondary,
.text-success,
.text-danger,
.text-warning,
.text-info,
.text-light,
.text-dark {
    direction: rtl;
    text-align: right;
}

/* تنسيق الخلفيات */
.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info,
.bg-light,
.bg-dark {
    direction: rtl;
    text-align: right;
}

/* تنسيق الأحجام */
.small, .large {
    direction: rtl;
    text-align: right;
}

/* تنسيق الأوزان */
.font-weight-light,
.font-weight-normal,
.font-weight-bold {
    direction: rtl;
    text-align: right;
}

/* تنسيق المحاذاة */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

/* تنسيق العرض */
.d-none,
.d-block,
.d-inline,
.d-inline-block {
    direction: rtl;
}

/* تنسيق المواضع */
.position-static,
.position-relative,
.position-absolute,
.position-fixed,
.position-sticky {
    direction: rtl;
}

/* تنسيق التمرير */
.overflow-auto,
.overflow-hidden,
.overflow-visible,
.overflow-scroll {
    direction: rtl;
}

/* تنسيق الارتفاع والعرض */
.h-25, .h-50, .h-75, .h-100 {
    direction: rtl;
}

.w-25, .w-50, .w-75, .w-100 {
    direction: rtl;
}

/* تنسيق الحدود */
.border-top,
.border-right,
.border-bottom,
.border-left {
    direction: rtl;
}

/* تنسيق الحدود المستديرة */
.rounded,
.rounded-top,
.rounded-right,
.rounded-bottom,
.rounded-left,
.rounded-circle {
    direction: rtl;
}

/* تنسيق الظلال */
.shadow-sm,
.shadow,
.shadow-lg {
    direction: rtl;
}

/* تنسيق الشفافية */
.opacity-0,
.opacity-25,
.opacity-50,
.opacity-75,
.opacity-100 {
    direction: rtl;
}

/* تنسيق التحويلات */
.transform {
    direction: rtl;
}

/* تنسيق الانتقالات */
.transition {
    direction: rtl;
}

/* تنسيق الرسوم المتحركة */
.animation {
    direction: rtl;
}

/* تنسيق الاستجابة */
@media (max-width: 768px) {
    .content-wrapper,
    .card,
    .table,
    .form-group,
    .btn,
    .alert,
    .nav,
    .info-box {
        direction: rtl;
        text-align: right;
    }
}

/* تنسيق الطباعة */
@media print {
    .content-wrapper,
    .card,
    .table,
    .form-group,
    .btn,
    .alert,
    .nav,
    .info-box {
        direction: rtl;
        text-align: right;
    }
}


/* تحسين موضع الشريط العلوي */
.main-header {
    position: relative;
    z-index: 1000;
}

.main-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-header .navbar-nav:first-child {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
}

/* تنسيق الشريط العلوي للغة العربية */
.arabic .main-header .navbar-nav .nav-item:first-child {
    margin-right: 0;
    margin-left: 0;
}

.arabic .main-header .navbar-nav .nav-item:first-child .nav-link {
    margin-right: 0;
    margin-left: 0;
}

/* تنسيق الشريط العلوي للغة الإنجليزية */
.english .main-header .navbar-nav .nav-item:first-child {
    margin-right: 0;
    margin-left: 0;
}

.english .main-header .navbar-nav .nav-item:first-child .nav-link {
    margin-right: 0;
    margin-left: 0;
}

/* إخفاء زر تبديل اللغة */
.navbar-nav .nav-item.dropdown {
    display: none !important;
}

/* إخفاء أي عناصر متعلقة بتبديل اللغة */
#languageDropdown,
.language-dropdown,
.language-switch {
    display: none !important;
}

/* ==============================================
   تنسيق أزرار التصفح (Pagination)
   Beautiful Pagination Styling
   ============================================== */

/* تنسيق أزرار التصفح العامة - أصغر ومن دون ظل */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    direction: rtl;
    text-align: center;
}

.pagination .page-item {
    margin: 0 0.125rem;
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0.25rem 0.5rem;
    margin: 0;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #495057;
    border-color: #495057;
    box-shadow: none;
    transform: none;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* تنسيق أزرار السابق والتالي - أصغر */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: 32px;
    font-weight: 500;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* تنسيق أزرار الأرقام - أصغر */
.pagination .page-item:not(:first-child):not(:last-child) .page-link {
    min-width: 28px;
    border-radius: 0.25rem;
}

/* تنسيق أزرار التصفح في الجداول - أصغر ومن دون ظل */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    margin: 0 0.125rem;
    padding: 0.25rem 0.5rem;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: #495057;
    border-color: #495057;
    box-shadow: none;
    transform: none;
}

.dataTables_wrapper .dataTables_paginate .pagate_button.disabled {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.5;
}

/* تنسيق أزرار التصفح للغة العربية */
.arabic .pagination {
    direction: rtl;
    text-align: center;
}

.arabic .pagination .page-link {
    direction: rtl;
    text-align: center;
}

/* تنسيق أزرار التصفح للغة الإنجليزية */
.english .pagination {
    direction: ltr;
    text-align: center;
}

.english .pagination .page-link {
    direction: ltr;
    text-align: center;
}

/* تنسيق أزرار التصفح في المحتوى */
.content-wrapper .pagination {
    margin: 2rem auto;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* تنسيق أزرار التصفح في البطاقات */
.card .pagination {
    margin: 1rem 0;
    padding: 0.5rem;
    background: transparent;
    border-radius: 0.25rem;
}

/* تنسيق أزرار التصفح في الجداول */
.table-responsive + .pagination {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* تنسيق أزرار التصفح المتجاوبة */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        margin: 1rem 0;
    }
    
    .pagination .page-item {
        margin: 0.125rem;
    }
    
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* تنسيق أزرار التصفح للطباعة */
@media print {
    .pagination {
        display: none;
    }
}

/* تنسيق أزرار التصفح المخصصة */
.pagination-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pagination-custom .page-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.pagination-custom .page-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination-custom .page-item.active .page-link {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==============================================
   تنسيق أزرار التصفح أسفل الصفحة
   Pagination at Bottom of Page
   ============================================== */

/* تنسيق أزرار التصفح في أسفل المحتوى - أصغر ومن دون ظل */
.content-wrapper .pagination {
    position: relative;
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    z-index: 10;
}

/* تنسيق أزرار التصفح في أسفل الجداول - أصغر ومن دون ظل */
.dataTables_wrapper .dataTables_paginate {
    position: relative;
    margin: 1rem auto 0.5rem auto;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    box-shadow: none;
    text-align: center;
}

/* تنسيق أزرار التصفح في أسفل البطاقات - أصغر ومن دون ظل */
.card .pagination {
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    box-shadow: none;
}

/* تنسيق أزرار التصفح في أسفل الجداول المتجاوبة - أصغر ومن دون ظل */
.table-responsive + .pagination {
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    box-shadow: none;
}

/* تنسيق أزرار التصفح في أسفل المحتوى الرئيسي - أصغر ومن دون ظل */
.main-content .pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
}

/* تنسيق أزرار التصفح في أسفل الصفحات - أصغر ومن دون ظل */
.page-content .pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* تنسيق أزرار التصفح في أسفل المحتوى - أصغر ومن دون ظل */
.content-area .pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
    z-index: 5;
}

/* تنسيق أزرار التصفح في أسفل المحتوى - أصغر ومن دون ظل */
.section-content .pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
}

/* تنسيق أزرار التصفح المتقدمة - أصغر ومن دون ظل */
.advanced-pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* تنسيق أزرار التصفح مع الظل - أصغر ومن دون ظل */
.shadow-pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
}

/* تنسيق أزرار التصفح المتدرجة - أصغر ومن دون ظل */
.gradient-pagination {
    margin: 1.5rem auto 1rem auto;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.gradient-pagination .page-link {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    backdrop-filter: none;
}

.gradient-pagination .page-link:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}

.gradient-pagination .page-item.active .page-link {
    background-color: #495057;
    border-color: #495057;
    box-shadow: none;
}

div.dataTables_wrapper div.dataTables_filter input {
  
    margin-right: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    margin: 0 0.125rem;
    padding: 0.25rem 0.5rem;
    color: #1f2d3d00;
    background-color: #ffffff00;
    border: 1px solid #ced4da00;
    border-radius: 0.25rem;
    text-decoration: none;
    /* color: #ef0000; */
    font-weight: 400;
    font-size: 0.75rem;
    transition: all 0.2s 
ease;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #d4e1d7;
    border-color: #ffffff;
    box-shadow: none;
    transform: none;
}
.content-header .breadcrumb {
    display: none;
}

b, strong {
    font-weight: 400;
}

.select2.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin: 3px 0px 0px 0px;
    left: 0px;
}


.info-box-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
   
}

.info-box-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: #222d36!important;

}
.transactions-widget .info-box {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s 
ease;
}

.arabic .nav-sidebar {
    direction: ltr!important;
}

.arabic .nav-sidebar .nav-link {
    direction: ltr!important;
    
}

.arabic .nav-sidebar .nav-link {
    
    text-align: justify!important;
}

.nav-pills .nav-link.active, .nav-pills .nav-link:not(.active):hover {
    color: rgb(255, 255, 255)!important;
}

.nav-link {
    display: block;
    padding: 10px 10px!important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link, .nav-pills .nav-link:hover {
    border-left: 10px solid var(--theme-color-primary);
    background-color: #ffffff24;
}

.nav-pills .nav-link.active .nav-icon, .nav-pills .nav-link:hover .nav-icon {
    color: #ffffff;
}

.info-box-number {
    font-size: 1.75rem;
    font-weight: 400;
    color: #1f2d3d;
}

/*h4, .h4 {
    font-size: 25px!important;
}
*/


.badge-primary {
    color: #dc3545;
    background-color: #ffffff00;
}

.vehicle-running-status-widget .badge-light {
    background: transparent !important;
    color: #495057 !important;
    border: 0 solid #dee2e6;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s 
ease;
    border: none;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
}

.vehicle-running-status-widget .badge-light {
    background: transparent !important;
    color: #495057 !important;
    border: 0px solid #dee2e6!important;
}

.vehicle-calendar-container .fc-event.trip-event {
    background:  #28a745!important;
    color: white;
}

.arabic .fc-toolbar-title {
    font-weight: 300;
}

.vehicle-calendar-container .fc-toolbar {
    background: #78888900!important;

}

.vehicle-calendar-container .fc-button {
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2d3d!important;
    font-weight: 600;

}

.vehicle-calendar-container .fc-toolbar-title {
    font-size: 1.5em;
    color: #212529!important;
    font-weight: 400!important;
    text-shadow: none!important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
    background-color: #1a252f00!important;
    border-color: #151e270b!important;
   
}

.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
    background-color: #1a252f00 !important;
    border-color: #151e2725 !important;
    color: #1f2d3d !important;
}

.fc .fc-button-primary:disabled {
    background-color: #2c3e5000!important;
    border-color: #2c3e501f!important;
    color: #1f2d3d !important;
}

.select2.select2-container .select2-selection--single {
    height: auto;
    padding: 5px 10px!important;
    
}

.trips-add-card .t_trip_final_amount {
width: 151px!important;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s 
ease;
    border: none;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
}

.action-btn {
    height: 40px;
    font-size: 13px;
    font-weight: 700!important;
}

/* Expiring Vehicles Widget Styles */
.expiring-vehicles-widget {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.expiring-vehicles-widget .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.expiring-vehicles-widget .card-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.expiring-item {
    transition: background-color 0.3s ease;
}

.expiring-item:hover {
    background-color: #f8f9fa;
}

.expiring-item:last-child {
    border-bottom: none !important;
}

/* Removed expiring-icon styles as icons are no longer used */

/* Plate Number Display Styles */
.plate-number-display {
    display: inline-block;
}

.plate-rectangle {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    color: #333333;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.plate-rectangle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 4px;
    z-index: -1;
}

.badge-sm {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.expiring-list::-webkit-scrollbar {
    width: 4px;
}

.expiring-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.expiring-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.expiring-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.badge-secondary

 {
    color: #fc051d;
    background-color: #ffffff00;
}

.badge-warning {
    background: linear-gradient(135deg, rgb(255 255 255 / 0%), #ffffff00);
    color: #212529;
}

.text-warning {
    color: #343a40 !important;
}

.modern-info-item span {
    color: #495057;
    font-size: 0.9em!important;
    font-weight: 400;
}

.modern-action-btn {

    font-size: 0.90rem!important;

}

.section-header h6 {
    font-size: 0.90rem!important;
}

.header-subtitle {
    font-size: 0.90rem!important;
  
    margin: 15px 0 0 0!important;
}

.riyal-icon-large {
    width: 40px!important;
    height: 22px!important;
}


.card-title {
    float: right;

}

.card-header > .card-tools {
    float: left;

}

.traccar-sync-widget  {
    display: none;
}

.vehicle-location-widget  {

    display: none;

}

.vehicle-running-status-widget  {
display: none;
}

.vehicle-status-widget  {
display: none;
}

.main-footer {
    float: right;
    direction: rtl;
}

.dt-buttons .buttons-pdf {

    display: none!important;
    
}

.dt-buttons .buttons-copy {

    display: none!important;
    
}

.content-header h1 {
    font-size: 20px!important;

}

.login-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0px!important;
    box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0)!important;
    transition: transform 0.0s ease!important;
}



.top-header {

    display: none!important;
}

.navbar .navbar-auth .list-item-li {

    display: none!important;
}

.quotes-view-card .info-box {
    background: #f8f9fa!important;
    border: 0px solid #bdc3c780!important;
  
}

.quotes-view-card .info-box p {
    padding-right: 15px;

}

.quotes-view-card * {
    padding-right: 5px;
}

.btn-outline-success {
    background-color: #28a74600;
    border-color: #28a74500;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a74500;
    border-color: #28a74600;
    color: #28a745;
}

.btn-primary {
    background: linear-gradient(135deg, #1f2d3d, #1f2d3d)!important;
}

.custom-select .custom-select-sm .form-control .form-control-sm {

    padding: 0.375rem 1.75rem 0.375rem 0.75rem!important;
    
}

select .custom-select {
 
    padding: 0.375rem 1.2rem 0.375rem 0.75rem!important;
   
}

.dataTables_wrapper .dataTables_length {
    padding: 10px 10px!important;
    margin: 5px 0!important;
}

div.dataTables_wrapper div.dataTables_info {

    padding-right: 10px!important;
}

.transactions-list-card .badge-light {
    border: 0px solid #dee2e6!important;
    font-weight: 600!important;
    font-size: 15px!important;
}

.transactions-list-card .badge-light {

    color: #1f2d3d !important;
   
}

.modal-body .form-control {

    padding: 3px 10px!important;
}


#dashboard-expiring-vehicles  .text-muted .mt-2 h6 {
    direction: revert;
    text-align: center!important;
}


.trips-list-card .table tbody td {
    padding: 5px 0px!important;
 
}

/* تنسيق عمود رقم الرحلة - محاذاة إلى اليمين */
.trips-list-card .table tbody td:nth-child(2) {
    text-align: right !important;
    direction: rtl;
}

/* تنسيق حقل الملاحظات في نموذج إضافة الرحلة */
.trips-add-card #t_notes {
    direction: rtl;
    text-align: right;
    resize: vertical;
    min-height: 60px;
    font-size: 14px;
}

.trips-add-card #t_notes::placeholder {
    text-align: right;
    direction: rtl;
    font-size: 13px;
    color: #6c757d;
}

.arabic .transactions-widget .d-flex {
    direction: initial!important;
}

.vehicle-list-card .card-header {
    display: block!important;
}

.vehicle-add-card .card-header {
    display: block!important;
}

.vehicle-group-card .card-header {
    display: block!important;
}

.vehicle-vendors-list-card .card-header {
    display: block!important;
}

.vehicle-vendors-add-card .card-header {
    display: block!important;
}
.drivers-list-card .card-header {
    display: block!important;
}

.drivers-add-card .card-header {
    display: block!important;
}

.trips-list-card .card-header {
    display: block!important;
}


.trips-add-card .card-header {
    display: block!important;
}

.transactions-list-card .card-header {
    display: block!important;
}

.transactions-add-card .card-header {
    display: block!important;
}

.transfer-add-card .card-header {
    display: block!important;
}

.categories-list-card .card-header {
    display: block!important;
}

.accounts-management-card .card-header {

display: block!important;

}

/* Page Title Styling */
.page-title {
    font-family: 'Cairo', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    color: #495057;
    margin-bottom: 0;
    line-height: 1.2;
    text-align: right !important;
    direction: rtl;
}

/* Responsive Page Title */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        text-align: right !important;
    }
}

