/* --- الأنماط --- */
    body {
      background-color: #f8f9fa;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .card-header {
      background-color: #343a40;
      color: #fff;
    }
    .btn-primary {
      background-color: #0d6efd;
      border-color: #0d6efd;
    }
    .btn-danger {
      background-color: #dc3545;
      border-color: #dc3545;
    }
    .btn-warning {
      background-color: #ffc107;
      border-color: #ffc107;
      color: #212529;
    }
    .btn-secondary {
      background-color: #6c757d;
      border-color: #6c757d;
    }
    .sold {
      background-color: #d1e7dd !important; /* لون أخضر فاتح للكروت المباعة */
    }
    .card.sold {
       border-left: 5px solid #198754; /* تمييز إضافي للبطاقة المباعة */
    }
    /* تحسين مظهر مؤشر التحميل */
    #loading-indicator, #loading-indicator-global {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: rgba(255,255,255,0.95);
      padding: 30px;
      border-radius: 10px;
      display: none; /* مخفي افتراضيًا */
      z-index: 2050; /* أعلى من العناصر الأخرى */
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      flex-direction: column; /* لترتيب الأيقونة والنص عموديًا */
      align-items: center;
      justify-content: center;
    }
     #loading-indicator-global {
        display: none; /* التأكد من أنه مخفي */
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 3000; /* أعلى Z-index */
    }
    /* تحسين مظهر النافذة المنبثقة */
    .modal-header {
      background-color: #343a40;
      color: #fff;
    }
    .modal-footer .btn-secondary {
      background-color: #6c757d;
      border-color: #6c757d;
    }
    /* تحسين مظهر الجدول */
    table th, table td {
      vertical-align: middle;
      text-align: center;
    }
    /* تخصيص الأيقونات في الجدول */
    .table th {
      text-align: center;
    }
    /* تخصيص الأزرار */
    .btn i {
      margin-left: 5px; /* تغيير الهامش ليتناسب مع RTL */
    }
    /* تخصيص Toast */
    .toast-container {
      z-index: 4000; /* أعلى من كل شيء */
    }
    /* Charts styling */
    .chart-container {
        position: relative;
        height: 300px; /* تحديد ارتفاع مناسب للحاويات */
        width: 100%;
        min-height: 250px; /* Ensure minimum height */
    }
     canvas {
      max-width: 100%; /* جعل الرسم البياني يستجيب للعرض */
    }
     .loading-text {
        color: #6c757d;
        font-style: italic;
     }