:root {
    --primary: #22c55e;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    --primary-950: #052e16;

    --default-50: #fafafa;
    --default-100: #f4f4f5;
    --default-200: #e4e4e7;
    --default-300: #d4d4d8;
    --default-400: #a1a1aa;
    --default-500: #71717a;
    --default-600: #52525b;
    --default-700: #3f3f46;
    --default-800: #27272a;
    --default-900: #18181b;
    --default-950: #09090b;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --footer-bg: #ffffff;
    --modal-bg: #ffffff;
}

.dark {
    --default-50: #18181b;
    --default-100: #27272a;
    --default-200: #3f3f46;
    --default-300: #52525b;
    --default-400: #71717a;
    --default-500: #a1a1aa;
    --default-600: #d4d4d8;
    --default-700: #e4e4e7;
    --default-800: #f4f4f5;
    --default-900: #fafafa;

    --footer-bg: #1e293b;
    --modal-bg: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: var(--default-900);
}

.dark body {
    background-color: #0f172a;
}

.main-content {
    min-width: 0;
    overflow-x: hidden;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-primary\/5 { background-color: rgba(34, 197, 94, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(34, 197, 94, 0.1) !important; }
.bg-primary\/20 { background-color: rgba(34, 197, 94, 0.2) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-500 { color: var(--primary-500) !important; }
.text-primary-600 { color: var(--primary-600) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-primary\/20 { border-color: rgba(34, 197, 94, 0.2) !important; }
.border-primary-500\/20 { border-color: rgba(34, 197, 94, 0.2) !important; }
.hover\:bg-primary:hover { background-color: var(--primary) !important; }
.hover\:border-primary:hover { border-color: var(--primary) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:text-primary-500:hover { color: var(--primary-500) !important; }
.hover\:text-white:hover { color: #ffffff !important; }
.ring-primary { --tw-ring-color: var(--primary) !important; }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary) !important; }

.text-default-50 { color: var(--default-50); }
.text-default-100 { color: var(--default-100); }
.text-default-200 { color: var(--default-200); }
.text-default-300 { color: var(--default-300); }
.text-default-400 { color: var(--default-400); }
.text-default-500 { color: var(--default-500); }
.text-default-600 { color: var(--default-600); }
.text-default-700 { color: var(--default-700); }
.text-default-800 { color: var(--default-800); }
.text-default-900 { color: var(--default-900); }
.text-default-950 { color: var(--default-950); }

.bg-default-50 { background-color: var(--default-50); }
.bg-default-100 { background-color: var(--default-100); }
.bg-default-200 { background-color: var(--default-200); }

.border-default-200 { border-color: var(--default-200); }
.border-default-300 { border-color: var(--default-300); }

.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.btn-main {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-main:hover {
    background-color: var(--primary-600);
}

.card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--default-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dark .card {
    background: var(--default-100);
    border-color: var(--default-200);
}

.form-input, .form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--default-200);
    border-radius: 0.375rem;
    background-color: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.dark .form-input, .dark .form-control, .dark .form-select {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}
.dark .form-input:focus, .dark .form-control:focus, .dark .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.dark .form-input::placeholder, .dark .form-control::placeholder, .dark .form-select::placeholder {
    color: #94a3b8;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert-primary {
    background-color: var(--primary-100);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

/* Global Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

/* Dark Mode Global Scrollbar */
.dark ::-webkit-scrollbar-track,
.dark::-webkit-scrollbar-track {
    background: #0f172a;
}
.dark ::-webkit-scrollbar-thumb,
.dark::-webkit-scrollbar-thumb {
    background: #334155;
}
.dark ::-webkit-scrollbar-thumb:hover,
.dark::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
.dark ::-webkit-scrollbar-corner,
.dark::-webkit-scrollbar-corner {
    background: #0f172a;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.dark * {
    scrollbar-color: #334155 #0f172a;
}

/* ========== Home Page Styles ========== */

/* Soft Card V3 */
.soft-card-v3 {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #e4e4e7;
    transition: all 0.3s ease;
}
.soft-card-v3:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.dark .soft-card-v3 {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: #475569;
}
.soft-card-v3 ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.soft-card-v3 ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.soft-card-v3 ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.soft-card-v3 ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .soft-card-v3 ::-webkit-scrollbar-track {
    background: #1e293b;
}
.dark .soft-card-v3 ::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark .soft-card-v3 ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Welcome Banner V3 */
.welcome-banner-v3 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 40%, #15803d 100%);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(34,197,94,0.25), 0 10px 20px rgba(34,197,94,0.15);
    position: relative;
    overflow: hidden;
}
.welcome-banner-v3::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
.welcome-banner-v3::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Stat Card V3 */
.stat-card-v3 {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 20px 0 80px;
    opacity: 0.1;
}
.stat-card-v3.green::before { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card-v3.blue::before { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card-v3.orange::before { background: linear-gradient(135deg, #f97316, #ea580c); }
.stat-card-v3:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.dark .stat-card-v3 {
    background: linear-gradient(145deg, #1e293b, #0f172a);
}
.stat-icon-v3 {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card-v3:hover .stat-icon-v3 {
    transform: rotate(-8deg) scale(1.1);
}

/* Category Card V3 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-card-v3 {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
    border: 1px solid #e4e4e7;
}
.category-card-v3:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.5);
}
.category-card-v3:hover .category-icon-v3 {
    transform: scale(1.15) rotate(8deg);
}
.category-icon-v3 {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .category-card-v3 {
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
    border-color: #475569;
}
.dark .category-card-v3:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Modal Service Card */
.modal-service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(34,197,94,0.15);
}
.modal-service-card:hover .service-icon-modal {
    transform: scale(1.1) rotate(5deg);
}
.service-icon-modal {
    transition: transform 0.3s ease;
}

/* Modal Category V3 */
.modal-category-v3 {
    background: #ffffff;
    border: 1px solid #e4e4e7;
}
.dark .modal-category-v3 {
    background: #1e293b;
    border-color: #475569;
}
.modal-service-item {
    background: linear-gradient(to bottom right, #fafafa, #ffffff);
    border: 1px solid #e4e4e7;
}
.dark .modal-service-item {
    background: linear-gradient(to bottom right, #334155, #1e293b);
    border-color: #475569;
}
.modal-service-item:hover {
    border-color: rgba(34, 197, 94, 0.5);
}
.modal-category-v3 .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
.modal-category-v3 .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.modal-category-v3 .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.modal-category-v3 .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .modal-category-v3 .overflow-y-auto::-webkit-scrollbar-track {
    background: #1e293b;
}
.dark .modal-category-v3 .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark .modal-category-v3 .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Modal Notification V3 */
.modal-notification-v3 {
    background: #ffffff;
    border: 1px solid #e4e4e7;
}
.dark .modal-notification-v3 {
    background: #1e293b;
    border-color: #475569;
}
.modal-notification-v3 .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
.modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-track {
    background: #1e293b;
}
.dark .modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark .modal-notification-v3 .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Recharge Bank Card */
.recharge-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.recharge-card:hover {
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1);
    transform: translateY(-4px);
}
.dark .recharge-card {
    background: #1e293b;
    border-color: #334155;
}
.recharge-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.dark .recharge-card-header {
    border-color: #334155;
}
.recharge-card-body {
    padding: 1.25rem;
}

/* Notice Card */
.notice-card {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: fit-content;
}
.dark .notice-card {
    background: rgba(113, 63, 18, 0.2);
    border-color: rgba(161, 98, 7, 0.5);
}
.notice-card-title {
    font-weight: 600;
    color: #854d0e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dark .notice-card-title {
    color: #fef08a;
}
.notice-card-content {
    font-size: 0.875rem;
    color: #a16207;
}
.dark .notice-card-content {
    color: #fde68a;
}
.notice-card-content * {
    color: inherit !important;
    background: transparent !important;
}

/* Server Option */
.server-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.server-option:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}
.server-option:has(:checked) {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}
.dark .server-option {
    border-color: #475569;
}
.dark .server-option:hover,
.dark .server-option:has(:checked) {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

/* Pagination Button */
.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: all 0.2s;
}
.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.dark .pagination-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
.dark .pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

        [x-cloak] { display: none !important; }
        .dataTable-wrapper .dataTable-container { overflow-x: auto; }
        .dataTable-wrapper .dataTable-table { width: 100%; border-collapse: collapse; }
        .dataTable-wrapper .dataTable-table th,
        .dataTable-wrapper .dataTable-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--default-200); }
        .dataTable-wrapper .dataTable-table th { background: var(--default-50); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--default-500); }
        .dataTable-wrapper .dataTable-table tbody tr:hover { background: var(--default-50); }
        .dataTable-pagination { display: flex; gap: 0.25rem; justify-content: center; padding: 1rem; }
        .dataTable-pagination li { list-style: none; }
        .dataTable-pagination a, .dataTable-pagination button { padding: 0.5rem 0.75rem; border-radius: 0.375rem; border: 1px solid var(--default-200); background: white; color: var(--default-600); cursor: pointer; transition: all 0.2s; }
        .dataTable-pagination a:hover, .dataTable-pagination button:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
        .dataTable-pagination .active a { background: var(--primary); border-color: var(--primary); color: white; }
        .dataTable-search input { padding: 0.5rem 1rem; border: 1px solid var(--default-200); border-radius: 0.375rem; font-size: 0.875rem; }
        .dataTable-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1); }
        .dataTable-selector { padding: 0.5rem; border: 1px solid var(--default-200); border-radius: 0.375rem; font-size: 0.875rem; }
        .dataTable-info { color: var(--default-500); font-size: 0.875rem; padding: 1rem; }
        .dataTable-top, .dataTable-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem; }
        
        .input-group { display: flex; }
        .input-group .input-group-text { padding: 0.5rem 1rem; background: var(--default-100); border: 1px solid var(--default-200); border-right: none; border-radius: 0.375rem 0 0 0.375rem; font-size: 0.875rem; color: var(--default-600); white-space: nowrap; }
        .input-group .form-control, .input-group .form-select { border-radius: 0 0.375rem 0.375rem 0; }
        
        /* Bootstrap Modal Fixes - DO NOT OVERRIDE BOOTSTRAP MODAL STYLES */
        .modal-content { border-radius: 0.75rem; border: none; }
        .dark .modal-content { background: #1e293b; color: #e2e8f0; border: 1px solid #475569; }
        .dark .modal-header { border-color: #475569; }
        .dark .modal-footer { border-color: #475569; }
        .dark .btn-close { filter: invert(1); }

        /* Fix z-index layering */
        .modal-backdrop { z-index: 1040 !important; }
        .modal { z-index: 1050 !important; }
        .swal2-container { z-index: 2000 !important; }
        .swal2-popup {
    flex-direction: column;
    justify-content: center;
    padding: 20px !important;
    box-sizing: border-box;
}

.dark .swal2-popup {
    background: #0e1726;
}

.dark .swal2-popup .swal2-title {
    color: #888ea8;
}

.swal2-popup .swal2-title {
    display: block;
    margin: 0 !important;
    width: 100%;
    color: #ff3176;
    font-size: 1em !important;
}

.swal2-popup .swal2-styled {
    box-shadow: 0 5px 20px 0 #0000001a !important;
    letter-spacing: 1px;
    font-size: 14px !important;
    line-height: 20px !important;
    transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 6px;
}

.swal2-popup .swal2-styled.swal2-cancel {
    background-color: #ffffff !important;
    color: #4cc9f0;
    border: 1px solid #e8e8e8;
    box-shadow: none;
    padding: 7px 20px;
}

.dark .swal2-popup .swal2-styled.swal2-cancel {
    background-color: #ff3176 !important;
    color: #e0e6ed;
    border-color: #ff3176;
}

.swal2-popup .swal2-styled.swal2-confirm {
    background-color: #0A6AFF;
}

.swal2-popup .swal2-styled.swal2-confirm:focus {
    box-shadow: none !important;
}

.swal2-popup .swal2-html-container {
    /* margin: 0!important; */
    color: #000000;
    font-weight: 600;
}

.dark .swal2-popup .swal2-html-container {
    color: #e0e6ed;
}

.swal2-popup .swal2-close {
    position: absolute;
    top: 16px;
    transition: color 0.1s ease-out;
    font-family: serif;
}

 :is([dir="ltr"] .swal2-popup .swal2-close) {
    right: 1rem;
}

 :is([dir="rtl"] .swal2-popup .swal2-close) {
    left: 1rem;
}

.dark .swal2-popup .swal2-close {
    color: #888ea8;
}

.swal2-popup.swal2-toast {
    flex-direction: row;
    align-items: center;
    width: auto !important;
    box-shadow: 0 0 0.625em #d9d9d9;
    padding: 2em;
    overflow-y: hidden;
    display: flex !important;
}

.swal2-popup.swal2-toast.swal2-show {
    animation: showSweetToast 0.5s;
}

.swal2-popup pre {
    color: #009688;
}

.swal2-icon {
    position: relative;
    box-sizing: initial;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 1.25em auto 1.875em;
    border-radius: 50%;
    border: 0.25em solid #000;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.swal2-icon:not(.swal2-error):not(.swal2-success) {
    width: 2em !important;
    line-height: 119px !important;
    height: 2em !important;
    margin: 0.25em auto 0.875em !important;
}

.swal2-icon.swal2-error {
    border: 5px solid #f1f2f3 !important;
    box-shadow: 0 3px 25px 0 #716aca33;
}

.swal2-icon.swal2-warning {
    color: #fb4 !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-warning {
    border: 5px solid #f1f2f3 !important;
    box-shadow: 0 3px 25px 0 #716aca33;
    font-size: 60px;
    line-height: 80px;
    text-align: center;
}

.swal2-icon.swal2-info {
    color: #4cc9f0 !important;
}

.swal2-icon.swal2-question {
    color: #805dca !important;
    border-style: solid;
    border-width: 4px !important;
    border-color: #0000 !important;
    box-shadow: 0 3px 25px 0 #716aca33;
    font-size: 60px;
    line-height: 80px;
    text-align: center;
}

.dark .swal2-icon.swal2-error,
.dark .swal2-icon.swal2-info,
.dark .swal2-icon.swal2-question,
.dark .swal2-icon.swal2-warning {
    border-color: #888ea8 !important;
    box-shadow: none !important;
}

.swal2-iconswal2-success [class^="swal2-success-line"][class$="tip"] {
    top: 2.875em;
    left: 0.875em;
    width: 1.5625em;
    transform: rotate(45deg);
}

.swal2-icon.swal2-success swal2-success [class^="swal2-success-line"][class$="long"] {
    top: 2.375em;
    right: 0.5em;
    width: 2.9375em;
    transform: rotate(-45deg);
}

.swal2-icon.swal2-success .swal2-success-fix {
    position: absolute;
    top: 0.5em;
    left: 1.625em;
    width: 0.4375em;
    height: 5.625em;
    transform: rotate(-45deg);
    z-index: 1;
}

.swal2-icon.swal2-success .swal2-success-ring {
    position: absolute;
    top: -0.25em;
    left: -0.25em;
    width: 100%;
    height: 100%;
    border: 0.25em solid #a5dc864d;
    border-radius: 50%;
    z-index: 2;
    box-sizing: initial;
}

.swal2-icon.swal2-success [class^="swal2-success-circular-line"][class$="right"] {
    top: -0.6875em;
    left: 1.875em;
    transform: rotate(-45deg);
    transform-origin: 0 3.75em;
    border-radius: 0 7.5em 7.5em 0;
}

.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step {
    background: #25d5e4 !important;
}

.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step {
    background: #ebedf2 !important;
}

.dark .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step {
    background: #ff3176 !important;
    color: #888ea8 !important;
}

.dark .swal2-progress-steps .swal2-progress-step {
    color: #e0e6ed;
}

.swal2-icon-content {
    font-size: 5.75rem !important;
}

.swal2-show {
    animation: swal2-show 0.3s;
}

.swal2-modal.background-modal .swal2-title {
    color: #ffffff !important;
}

.dark .swal2-input {
    background-color: #1b2e4b;
    border-color: #253b5c;
    color: #888ea8;
}

.dark .swal2-footer {
    border-color: #888ea8;
}

.swal2-image {
    margin-bottom: 32px !important;
}

.sweet-alerts.swal2-popup .swal2-html-container {
    margin-top: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.swal2-container .swal2-close {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

.swal2-container .swal2-close:hover {
    --tw-text-opacity: 1;
    color: rgb(234 234 236 / var(--tw-text-opacity));
}

.swal2-container .swal2-close:focus {
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.swal2-container .swal2-popup.swal2-toast {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    background: #ffffff;
}

.swal2-container .swal2-popup.swal2-toast .swal2-icon {
    width: 2em !important;
    height: 2em !important;
    margin: 0 0.75em 0 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-container .swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1.5rem !important;
}

.swal2-container .swal2-popup.swal2-toast .swal2-html-container,
.swal2-popup.swal2-toast .swal2-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

.swal2-container .swal2-popup.swal2-toast.color-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}
.swal2-container .swal2-popup.swal2-toast.color-success .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-success .swal2-html-container {
    color: #166534 !important;
}
.swal2-container .swal2-popup.swal2-toast.color-success .swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}
.swal2-container .swal2-popup.swal2-toast.color-success .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #22c55e !important;
}
.swal2-container .swal2-popup.swal2-toast.color-success .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #22c55e !important;
}

.swal2-container .swal2-popup.swal2-toast.color-error,
.swal2-container .swal2-popup.swal2-toast.color-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
}
.swal2-container .swal2-popup.swal2-toast.color-error .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-error .swal2-html-container,
.swal2-container .swal2-popup.swal2-toast.color-danger .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-danger .swal2-html-container {
    color: #991b1b !important;
}
.swal2-container .swal2-popup.swal2-toast.color-error .swal2-icon.swal2-error,
.swal2-container .swal2-popup.swal2-toast.color-danger .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
.swal2-container .swal2-popup.swal2-toast.color-error .swal2-icon.swal2-error [class^=swal2-x-mark-line],
.swal2-container .swal2-popup.swal2-toast.color-danger .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}

.swal2-container .swal2-popup.swal2-toast.color-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}
.swal2-container .swal2-popup.swal2-toast.color-warning .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-warning .swal2-html-container {
    color: #92400e !important;
}
.swal2-container .swal2-popup.swal2-toast.color-warning .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-container .swal2-popup.swal2-toast.color-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
}
.swal2-container .swal2-popup.swal2-toast.color-info .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-info .swal2-html-container {
    color: #1e40af !important;
}
.swal2-container .swal2-popup.swal2-toast.color-info .swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-container .swal2-popup.swal2-toast.color-primary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}
.swal2-container .swal2-popup.swal2-toast.color-primary .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-primary .swal2-html-container {
    color: #166534 !important;
}

.swal2-container .swal2-popup.swal2-toast.color-secondary {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-left-color: #8b5cf6;
}
.swal2-container .swal2-popup.swal2-toast.color-secondary .swal2-title,
.swal2-container .swal2-popup.swal2-toast.color-secondary .swal2-html-container {
    color: #5b21b6 !important;
}

/* Dark mode toast */
.dark .swal2-container .swal2-popup.swal2-toast {
    background: #1e293b;
}
.dark .swal2-container .swal2-popup.swal2-toast.color-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
}
.dark .swal2-container .swal2-popup.swal2-toast.color-success .swal2-title,
.dark .swal2-container .swal2-popup.swal2-toast.color-success .swal2-html-container {
    color: #86efac !important;
}
.dark .swal2-container .swal2-popup.swal2-toast.color-error,
.dark .swal2-container .swal2-popup.swal2-toast.color-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
}
.dark .swal2-container .swal2-popup.swal2-toast.color-error .swal2-title,
.dark .swal2-container .swal2-popup.swal2-toast.color-error .swal2-html-container,
.dark .swal2-container .swal2-popup.swal2-toast.color-danger .swal2-title,
.dark .swal2-container .swal2-popup.swal2-toast.color-danger .swal2-html-container {
    color: #fca5a5 !important;
}
.dark .swal2-container .swal2-popup.swal2-toast.color-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
}
.dark .swal2-container .swal2-popup.swal2-toast.color-warning .swal2-title,
.dark .swal2-container .swal2-popup.swal2-toast.color-warning .swal2-html-container {
    color: #fcd34d !important;
}
.dark .swal2-container .swal2-popup.swal2-toast.color-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
}
.dark .swal2-container .swal2-popup.swal2-toast.color-info .swal2-title,
.dark .swal2-container .swal2-popup.swal2-toast.color-info .swal2-html-container {
    color: #93c5fd !important;
}
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

    table.dataTable-table tfoot tr th,
    table.dataTable-table thead tr th {
        font-weight: 700;
    }

    table.table-bordered tbody tr td,
    table.table-bordered thead tr th {
        border-width: 1px !important;
        border-style: solid !important;
        --tw-border-opacity: 1 !important;
        border-color: rgb(246 247 250 / var(--tw-border-opacity)) !important;
    }


    table.table-compact tbody tr td,
    table.table-compact thead tr th {
        padding: 0.5rem 0.75rem !important;
    }

    .sticky-header table thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .sticky-header .dataTable-container {
        height: 500px;
    }

    .sticky-column table tbody tr td:first-child,
    .sticky-column table thead tr th:first-child {
        position: sticky;
        z-index: 8;
        --tw-bg-opacity: 1;
        background-color: rgb(246 248 250 / var(--tw-bg-opacity));
    }

    .sticky-column table tbody tr td:first-child,
    .sticky-column table thead tr th:first-child {
        left: 0;
    }


    .sticky-column table tbody tr td:nth-child(2),
    .sticky-column table thead tr th:nth-child(2) {
        position: sticky;
        z-index: 8;
        --tw-bg-opacity: 1;
        background-color: rgb(246 248 250 / var(--tw-bg-opacity));
    }

    .sticky-column table tbody tr td:nth-child(2),
    .sticky-column table thead tr th:nth-child(2) {
        left: 58px;
    }


    .sticky-header.sticky-column table thead tr th:first-child,
    .sticky-header.sticky-column table thead tr th:nth-child(2) {
        top: 0;
    }

    .dataTable-container {
        overflow: auto;
        max-height: 70vh;
        -webkit-overflow-scrolling: touch;
    }

    .dataTable-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .dataTable-table {
        width: 100%;
        min-width: 600px;
        table-layout: auto;
    }

    .dataTable-table th,
    .dataTable-table td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }

    .dataTable-table td.wrap-text {
        white-space: normal;
        word-break: break-word;
    }

    @media (max-width: 768px) {
        .dataTable-container {
            max-height: 60vh;
        }
        .dataTable-table th,
        .dataTable-table td {
            padding: 0.5rem 0.5rem !important;
            font-size: 0.75rem;
            max-width: 150px;
        }
        .dataTable-top,
        .dataTable-bottom {
            flex-direction: column;
            gap: 0.5rem;
        }
        .dataTable-search {
            width: 100%;
        }
        .dataTable-search .dataTable-input {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .dataTable-table th,
        .dataTable-table td {
            padding: 0.4rem 0.3rem !important;
            font-size: 0.7rem;
            max-width: 100px;
        }
        .dataTable-pagination a {
            height: 1.75rem;
            width: 1.75rem;
            font-size: 0.7rem;
        }
    }

    .dataTable-container,
    .dataTable-top {
        margin-bottom: 1.25rem;
    }

    .dataTable-bottom,
    .dataTable-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        font-weight: 500;
    }

    .dataTable-pagination {
        margin-left: auto;
    }



    .dataTable-pagination ul {
        display: flex;
        align-items: center;
    }

    .dataTable-pagination a {
        display: grid;
        height: 2.25rem;
        width: 2.25rem;
        place-content: center;
        border-radius: 9999px;
        --tw-bg-opacity: 1;
        background-color: rgb(224 230 237 / var(--tw-bg-opacity));
        --tw-text-opacity: 1;
        color: rgb(59 63 92 / var(--tw-text-opacity));
    }

    .dataTable-pagination a:hover {
        --tw-bg-opacity: 1 !important;
        background-color: rgb(67 97 238 / var(--tw-bg-opacity)) !important;
        --tw-text-opacity: 1 !important;
        color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
    }

    .dataTable-pagination a {
        margin-left: 0.25rem;
    }




    .dataTable-pagination .active a {
        cursor: default;
        --tw-bg-opacity: 1;
        background-color: rgb(67 97 238 / var(--tw-bg-opacity));
        --tw-text-opacity: 1;
        color: rgb(255 255 255 / var(--tw-text-opacity));
    }

    .dataTable-sorter {
        position: relative;
        display: inline-block;
        height: 100%;
        width: -moz-max-content;
        width: max-content;
    }

    .dataTable-sorter {
        padding-right: 1.75rem;
    }

    .dataTable-sorter:after,
    .dataTable-sorter:before {
        content: var(--tw-content);
        right: 0.25rem;
    }

    .dataTable-sorter:after,
    .dataTable-sorter:before {
        content: "";
        height: 0;
        width: 0;
        position: absolute;
        border-left: 5px solid #0000;
        border-right: 5px solid #0000;
        opacity: 0.2;
    }

    .dataTable-sorter:before {
        border-top: 5px solid #0e1726;
        bottom: 4px;
    }

    .dataTable-sorter:after {
        border-bottom: 5px solid #0e1726;
        border-top: 5px solid #0000;
        top: -2px;
    }

    .dark .dataTable-sorter:after {
        border-bottom-color: #ffffff;
    }

    .dark .dataTable-sorter:before {
        border-top-color: #ffffff;
    }

    .asc .dataTable-sorter:after {
        --tw-border-opacity: 1;
        border-bottom-color: rgb(67 97 238 / var(--tw-border-opacity));
        opacity: 1;
    }

    .desc .dataTable-sorter:before {
        --tw-border-opacity: 1;
        border-top-color: rgb(67 97 238 / var(--tw-border-opacity));
        opacity: 1;
    }

    .ltr .dataTable-search {
        margin-left: auto;
    }

    .rtl .dataTable-search {
        margin-right: auto;
    }

    .dataTable-dropdown .dataTable-selector,
    .dataTable-search .dataTable-input {
        width: auto;
        background-color: #ffffff;
        color: #0e1726;
        border-color: #e0e6ed;
        border-radius: 6px;
        padding: 8px 16px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        border-width: 1px;
        outline: none !important;
    }

    .dataTable-dropdown .dataTable-selector:focus,
    .dataTable-search .dataTable-input:focus {
        border-color: #4cc9f0;
    }

    .dataTable-search .dataTable-input {
        box-shadow: none !important;
    }

    .dataTable-dropdown .dataTable-selector {
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }

    .dataTable-dropdown .dataTable-selector {
        padding-left: 0.5rem;
        padding-right: 1rem;
    }

    .dark .dataTable-dropdown .dataTable-selector,
    .dark .dataTable-search .dataTable-input {
        background-color: #121e32;
        color: #888ea8;
        border-color: #17263c;
    }

    .dataTable-dropdown label {
        margin-bottom: 0;
    }

    @media screen and (max-width: 767px) {
        .dataTable-bottom {
            flex-direction: column;
        }

        .ltr .dataTable-pagination {
            margin-left: 0;
        }

        .rtl .dataTable-pagination {
            margin-right: 0;
        }
    }

    .invoice-table .dataTable-wrapper .dataTable-bottom,
    .invoice-table .dataTable-wrapper .dataTable-top {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .no-number-pagination ul.dataTable-pagination-list li {
        display: none;
    }

    .no-number-pagination ul.dataTable-pagination-list li.pager {
        display: block !important;
    }

    .next-prev-pagination .dataTable-pagination a {
        width: -moz-max-content;
        width: max-content;
        border-radius: 0.375rem;
        border-width: 1px;
        padding: 0.5rem 1.25rem;
    }

    .next-prev-pagination .dataTable-pagination a,
    :is(.dark .next-prev-pagination .dataTable-pagination a) {
        --tw-border-opacity: 1;
        border-color: rgb(67 97 238 / var(--tw-border-opacity));
        background-color: initial;
        --tw-text-opacity: 1;
        color: rgb(67 97 238 / var(--tw-text-opacity));
    }

    .next-prev-pagination .dataTable-bottom {
        flex-direction: column;
        justify-content: center;
    }

    .next-prev-pagination .dataTable-pagination {
        margin-left: 0;
    }

    .table-responsive {
        overflow: auto;
    }

    table {
        width: 100%;
        border-collapse: collapse !important;
    }

    table tfoot tr,
    table thead tr {
        border-bottom-width: 0;
        --tw-bg-opacity: 1 !important;
        background-color: rgb(246 248 250 / var(--tw-bg-opacity)) !important;
    }

    :is(.dark table tfoot tr),
    :is(.dark table thead tr) {
        --tw-bg-opacity: 1 !important;
        background-color: rgb(26 41 65 / var(--tw-bg-opacity)) !important;
    }

    table tbody tr td,
    table tfoot tr th,
    table thead tr th {
        padding: 0.75rem 1rem;
    }

    table tbody tr td,
    table tfoot tr th,
    table thead tr th {
        text-align: left;
    }


    table tfoot tr th,
    table thead tr th {
        font-weight: 600;
    }

    table tbody tr {
        border-bottom-width: 1px;
        border-color: #e0e6ed66 !important;
    }

    :is(.dark table tbody tr) {
        --tw-border-opacity: 1 !important;
        border-color: rgb(25 30 58 / var(--tw-border-opacity)) !important;
    }

    table.table-hover tbody tr:hover {
        background-color: #e0e6ed33 !important;
    }

    :is(.dark table.table-hover tbody tr:hover) {
        background-color: #1a294166 !important;
    }

    table.table-striped tbody tr:nth-child(odd) {
        background-color: #e0e6ed33 !important;
    }

    :is(.dark table.table-striped tbody tr:nth-child(odd)) {
        background-color: #1a294166 !important;
    }

    table.dataTable-table tbody tr td,
    table.dataTable-table tbody tr th {
        border-bottom-width: 1px;
        border-color: #e0e6ed66;
        padding: 0.75rem 1rem;
    }

    table.dataTable-table tbody tr td,
    table.dataTable-table tbody tr th {
        text-align: left;
    }


    table.dataTable-table tbody tr:last-child td {
        border-bottom-width: 0;
    }

    th {
        text-align: inherit;
        text-align: -webkit-match-parent
    }

    tbody,
    td,
    tfoot,
    th,
    thead,
    tr {
        border: 0 solid;
        border-color: inherit
    }

    /* Preloader */
    #preloader {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 99999;
        left: 0;
        top: 0;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s ease;
    }
    .dark #preloader {
        background-color: #0f172a;
    }
    .loader {
        height: 20px;
        width: 250px;
        position: relative;
    }
    .loader--dot {
        animation-name: loader;
        animation-timing-function: ease-in-out;
        animation-duration: 2s;
        animation-iteration-count: infinite;
        height: 20px;
        width: 20px;
        border-radius: 100%;
        background-color: #22c55e;
        position: absolute;
        border: 2px solid white;
    }
    .loader--dot:first-child { background-color: #22c55e; animation-delay: 0.5s; }
    .loader--dot:nth-child(2) { background-color: #16a34a; animation-delay: 0.4s; }
    .loader--dot:nth-child(3) { background-color: #15803d; animation-delay: 0.3s; }
    .loader--dot:nth-child(4) { background-color: #166534; animation-delay: 0.2s; }
    .loader--dot:nth-child(5) { background-color: #14532d; animation-delay: 0.1s; }
    .loader--dot:nth-child(6) { background-color: #4ade80; animation-delay: 0s; }
    .loader--text {
        position: absolute;
        top: 200%;
        left: 0;
        right: 0;
        width: 4rem;
        margin: auto;
    }
    .loader:after {
        content: "Loading";
        font-weight: bold;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        color: #22c55e;
        animation-name: loading-text;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
    @keyframes loader {
        15% { transform: translateX(0); }
        45% { transform: translateX(230px); }
        65% { transform: translateX(230px); }
        95% { transform: translateX(0); }
    }
    @keyframes loading-text {
        0% { content: "Loading"; }
        25% { content: "Loading."; }
        50% { content: "Loading.."; }
        75% { content: "Loading..."; }
    }