/* Dashboard Tables Enhanced Styling - Arabic & English Support */

/* ==========================================================================
   Table Base Styling
   ========================================================================== */

.dashboard-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.dashboard-table-container .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem;
    position: relative;
}

.dashboard-table-container .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    display: none;
}

.dashboard-table-container .card-header h4 {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    position: relative;
    z-index: 2;
    display: none;
}

/* ==========================================================================
   Enhanced Table Styling
   ========================================================================== */

.table-enhanced {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
}

.table-enhanced thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 2px solid #dee2e6;
    position: relative;
    white-space: nowrap;
}

.table-enhanced thead th:first-child {
    border-top-left-radius: 8px;
}

.table-enhanced thead th:last-child {
    border-top-right-radius: 8px;
}

.table-enhanced thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-enhanced thead th:hover::after {
    opacity: 1;
}

.table-enhanced tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table-enhanced tbody tr:hover {
    background: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-enhanced tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table-enhanced tbody tr:nth-child(even):hover {
    background: #000000;
}

.table-enhanced tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    /* border: double; */
    color: #ffffff !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ==========================================================================
   Action Buttons Styling
   ========================================================================== */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-action:hover::before {
    width: 100%;
    height: 100%;
}

.btn-action.edit {
    background: linear-gradient(135deg, #5156be, #000000);
    color: #fff;
}

.btn-action.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-action.delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
}

.btn-action.delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-action.view {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
}

.btn-action.view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
}

.btn-action.publish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-action.publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-action.unpublish {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.btn-action.unpublish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Checkbox Styling
   ========================================================================== */

.checkbox-enhanced {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.checkbox-enhanced input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.checkbox-enhanced .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.checkbox-enhanced:hover .checkmark {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-enhanced input:checked~.checkmark,
.checkbox-enhanced.checked .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.checkbox-enhanced .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-enhanced input:checked~.checkmark:after,
.checkbox-enhanced.checked .checkmark:after {
    display: block;
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¥ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂµÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â­ ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¥ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¶ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â  ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ checkboxes */
.checkbox-enhanced {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-enhanced input[type="checkbox"]:focus+.checkmark {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.checkbox-enhanced.checked .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
}

.checkbox-enhanced.checked .checkmark:after {
    display: block !important;
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¶ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â£ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ checkboxes ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¨ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â© ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± */
.checkbox-enhanced * {
    pointer-events: none;
}

.checkbox-enhanced {
    pointer-events: auto;
}

.checkbox-enhanced:hover .checkmark {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂªÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â­ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â³ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¹Ã¢â‚¬Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ */
.table-enhanced {
    font-size: 0.875rem;
}

.table-enhanced th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-enhanced td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

.table-enhanced tbody tr:hover {
    /* background-color: rgba(102, 126, 234, 0.05) !important; */
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂªÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â­ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â³ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂµÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¹Ã¢â‚¬Â ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± */
.table-enhanced img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.table-enhanced img:hover {
    transform: scale(1.05);
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂªÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â­ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â³ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â±ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¹Ã¢â‚¬Â ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â§ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¨ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â· */
.table-enhanced a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.table-enhanced a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚ÂªÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â­ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â³ÃƒÆ’Ã¢â€žÂ¢Ãƒâ€¦Ã‚Â ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â  ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã¢â€žÂ¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¡ÃƒÆ’Ã‹Å“Ãƒâ€šÃ‚Â± NO IMAGE placeholder */
.no-image-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.no-image-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
}

.no-image-placeholder i {
    font-size: 18px;
    margin-bottom: 4px;
    color: #adb5bd;
}

/* ==========================================================================
   RTL Support for Arabic
   ========================================================================== */

[dir="rtl"] .table-enhanced thead th:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 8px;
}

[dir="rtl"] .table-enhanced thead th:last-child {
    border-top-right-radius: 0;
    border-top-left-radius: 8px;
}

[dir="rtl"] .action-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-action {
    transform: scaleX(-1);
}

[dir="rtl"] .checkbox-enhanced .checkmark:after {
    left: auto;
    right: 5px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {

    .table-enhanced thead th,
    .table-enhanced tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   DataTables Customization
   ========================================================================== */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 10px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.table-loading {
    position: relative;
    overflow: hidden;
}

.table-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.table-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.table-empty h5 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.table-empty p {
    color: #6c757d;
    margin: 0;
}

/* ==========================================================================
   Animation Enhancements
   ========================================================================== */

.table-enhanced tbody tr {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.table-row-hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15) !important;
}

.btn-action-clicked {
    transform: scale(0.95);
}

/* ==========================================================================
   Enhanced Button Styling
   ========================================================================== */

.btn-enhanced {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

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

/* ==========================================================================
   Pagination Enhancements
   ========================================================================== */

.pagination-rounded .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
}

.pagination-rounded .page-link:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-color: #28a745;
    transform: translateY(-1px);
}

.pagination-rounded .page-item.active .page-link {
    background: linear-gradient(135deg, #5156be, #000000);
    border-color: #28a745;
    color: #fff;
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.table-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Page Header Enhancements
   ========================================================================== */

.page-title-box {
    background: linear-gradient(95deg, #7d7d7d 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.page-title-box h4 {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
}

.page-title-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
    text-transform: capitalize;
}

/* ==========================================================================
   Action Buttons Container
   ========================================================================== */

.btn-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
}

.btn-list .btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-list .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-list .btn:hover::before {
    left: 100%;
}

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

.btn-list .btn-primary {
    background: linear-gradient(135deg, #667eea, #000000);
    border: none;
}

.btn-list .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.btn-list .btn-dark {
    background: linear-gradient(135deg, #495057, #343a40);
    border: none;
    text-transform: capitalize;
}

.btn-list .btn-dark:hover {
    background: linear-gradient(135deg, #3d4449, #2c3136);
}

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

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

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .dashboard-table-container {
        /* background: #030303; */
        border-color: #14489f;
    }

    .dashboard-table-container .card-header {
        background: #fbfaff;
    }

    .table-enhanced {
        background: #f7f7f7;
        color: #050505;
    }

    .table-enhanced thead th {
        background: linear-gradient(258deg, #7d7d7d 0%, #] 100%);
        color: #000000;
        border-bottom-color: #ffffff;
    }

    .table-enhanced tbody tr {
        border-bottom-color: #282828;
        background: linear-gradient(169deg, #323232 0%, #3a3a3a 100%);
    }

    .table-enhanced tbody tr:nth-child(even) {
        background-color: #2d3748;
    }

    .table-enhanced tbody td {
        color: #000000;
    }

    .dataTables_wrapper .dataTables_filter input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .dataTables_wrapper .dataTables_filter input:focus {
        border-color: #667eea;
    }
}

.card-body {
    background: #e1e1e1;
    color: #000000;
    border-radius: 10px;
}

h4.card-title {
    color: white;
    display: none;
}

h5.font-size-14.mb-3 {
    text-transform: capitalize;
    color: #000000;
}

span.text-muted.mb-3.lh-1.d-block.text-truncate {
    color: #2d2d2d !important;
}

span.counter-value {
    color: coral;
}

table.table.table-sm {
    color: #000000;
}