/* Tailwind Custom CSS - Separated for better maintenance */

/* ============================================
   Typography & Fonts
   ============================================ */

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/css/fonts/Quicksand/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/Quicksand/Quicksand-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/css/fonts/Quicksand/Quicksand-Bold.ttf') format('truetype');
}

* {
    font-family: "Quicksand", serif;
    font-weight: 600;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ============================================
   Marquee Animation
   ============================================ */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ============================================
   Loading Dots Animation
   ============================================ */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots div {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: #6366f1;
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ============================================
   Sidebar Category Toggle
   ============================================ */
.sidebar-category-toggle[aria-expanded="true"] .material-icons-outlined {
    transform: rotate(180deg);
}

/* Smooth transitions for category content */
[data-category-content] {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

[data-category-content]:not(.hidden) {
    max-height: 1000px;
}

/* ============================================
   Card Hover Effects
   ============================================ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   Text Line Clamp Utilities
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Prose Dark Mode Styling (for post content)
   ============================================ */
.prose.dark\:prose-invert {
    color: #d1d5db;
}

.prose.dark\:prose-invert h1,
.prose.dark\:prose-invert h2,
.prose.dark\:prose-invert h3,
.prose.dark\:prose-invert h4 {
    color: #ffffff;
}

.prose.dark\:prose-invert a {
    color: #6366f1;
}

.prose.dark\:prose-invert strong {
    color: #ffffff;
}

/* ============================================
   Aspect Ratio for Video Container
   ============================================ */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    /* Mobile sidebar toggle */
    #sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 9999;
        width: 300px;
    }

    #sidebar.show {
        display: flex;
        z-index: 9999;
    }

    .sidebar-overlay {
        z-index: 9998 !important;
    }

    /* Show text labels when mobile sidebar is opened */
    #sidebar.show .hidden.lg\:block {
        display: block !important;
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        display: none;
    }

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

    /* Mobile sidebar navigation font adjustments */
    #sidebar nav {
        padding: 0.75rem 0.5rem !important;
    }

    #sidebar nav a,
    #sidebar nav button {
        padding: 0.625rem 0.75rem !important;
        font-size: 13px !important;
    }

    #sidebar nav a span.font-bold,
    #sidebar nav button span.font-bold {
        font-size: 13px !important;
    }

    #sidebar nav .material-symbols-outlined {
        font-size: 20px !important;
    }

    #sidebar nav .text-xl {
        font-size: 18px !important;
    }

    #sidebar nav .text-sm {
        font-size: 12px !important;
    }

    /* Category section titles */
    #sidebar nav p.text-xs {
        font-size: 10px !important;
    }

    /* Sub-menu items */
    #sidebar nav [data-category-content] a {
        padding: 0.5rem 0.625rem !important;
        font-size: 12px !important;
    }

    /* Logo area */
    #sidebar > div:first-child {
        height: 3.5rem !important;
        padding: 0 1rem !important;
    }

    /*#sidebar > div:first-child img {*/
    /*    height: 2rem !important;*/
    /*}*/
}

/* ============================================
   Mobile Font Size Normalization
   ============================================ */
@media (max-width: 640px) {
    /* Header top marquee */
    .animate-marquee {
        font-size: 11px !important;
    }

    /* Balance cards - reduce large numbers */
    .text-3xl {
        font-size: 1.5rem !important; /* 24px instead of 30px */
        line-height: 2rem !important;
    }

    /* Section headings */
    .text-2xl {
        font-size: 1.25rem !important; /* 20px instead of 24px */
        line-height: 1.75rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important; /* 18px instead of 20px */
        line-height: 1.5rem !important;
    }

    .text-lg {
        font-size: 1rem !important; /* 16px instead of 18px */
        line-height: 1.5rem !important;
    }

    /* Card padding adjustments */
    .p-6 {
        padding: 1rem !important; /* 16px instead of 24px */
    }

    .p-5 {
        padding: 0.875rem !important; /* 14px instead of 20px */
    }

    /* Gap adjustments */
    .gap-6 {
        gap: 1rem !important; /* 16px instead of 24px */
    }

    .gap-8 {
        gap: 1.25rem !important; /* 20px instead of 32px */
    }

    /* Margin bottom adjustments */
    .mb-8 {
        margin-bottom: 1.25rem !important;
    }

    /* Main content padding */
    #content {
        padding: 0.75rem !important;
    }

    /* Balance card specific */
    .grid-cols-1.md\:grid-cols-3 .p-6 {
        padding: 1rem !important;
    }

    /* Reduce decorative circle size */
    .w-32.h-32 {
        width: 5rem !important;
        height: 5rem !important;
    }

    /* Icon sizes in cards */
    .material-icons-outlined {
        font-size: 20px !important;
    }

    /* Smaller icons where needed */
    .text-base .material-icons-outlined,
    .text-sm .material-icons-outlined {
        font-size: 16px !important;
    }

    /* Featured service cards */
    .rounded-2xl.p-6 h3.text-xl {
        font-size: 1rem !important;
    }

    /* DataTable font size */
    .tailwind-datatable table {
        font-size: 12px !important;
    }

    .tailwind-datatable thead th {
        padding: 10px !important;
        font-size: 11px !important;
    }

    .tailwind-datatable tbody td {
        padding: 10px !important;
    }

    /* Tab buttons */
    .tab-status a {
        padding: 0.5rem 0.75rem !important;
    }

    .tab-status a span.text-xs,
    .tab-status a span.text-sm {
        font-size: 11px !important;
    }

    /* Form inputs */
    input, select, textarea {
        font-size: 14px !important;
    }

    /* Buttons */
    button, .btn {
        font-size: 14px !important;
    }

    /* Order summary card */
    #total-price-display {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   Animation Utilities
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-in-out;
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */
.transition-all-300 {
    transition: all 300ms ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.shadow-soft {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dark .shadow-soft {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Dark Mode Toggle Smooth Transition
   ============================================ */
* {
    transition-property: background-color, border-color, color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Exclude transitions for specific elements to avoid performance issues */
.no-transition,
.no-transition * {
    transition: none !important;
}

/* ============================================
   Z-Index Management
   ============================================ */
.z-sidebar {
    z-index: 30;
}

.z-overlay {
    z-index: 40;
}

.z-modal {
    z-index: 50;
}

.z-tooltip {
    z-index: 60;
}

/* ============================================
   DataTable Custom Styling for Tailwind
   ============================================ */


/* Mobile DataTable horizontal scroll */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;

    }

    .overflow-x-auto::-webkit-scrollbar {
        height: 6px;
    }

    .overflow-x-auto::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    .overflow-x-auto::-webkit-scrollbar-thumb {
        border-radius: 10px;
    }

    .tailwind-datatable {
        -webkit-overflow-scrolling: touch;
    }

    .tailwind-datatable::-webkit-scrollbar {
        height: 6px;
    }

    .tailwind-datatable::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    .tailwind-datatable::-webkit-scrollbar-thumb {
        border-radius: 10px;
    }
}

/* Base DataTable Styling */
.tailwind-datatable table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: auto;
    font-size: 14px;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.tailwind-datatable {
    width: 100%;
}

.tailwind-datatable thead {
    font-size: 13px;
    text-transform: uppercase;
    background: rgb(99 102 241);
}

.tailwind-datatable thead th {
    padding: 14px 16px !important;
    font-weight: 700;
    color: #ffffff;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

.tailwind-datatable thead th:last-child {
    border-right: none;
}

.tailwind-datatable tbody tr {
    background-color: #ffffff;
    transition: background-color 0.15s ease-in-out;
}

.tailwind-datatable tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.tailwind-datatable tbody tr:hover {
    background-color: #eef2ff;
}

.tailwind-datatable tbody td {
    padding: 14px 16px !important;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    font-weight: 500;
    line-height: 1.5;
}

.tailwind-datatable tbody td:last-child {
    border-right: none;
}

.tailwind-datatable tbody tr:last-child td {
    border-bottom: none;
}

/* DataTable Wrapper */
.dataTables_wrapper {
    width: 100%;
}

/* DataTable Controls - Search & Length */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}


.dataTables_wrapper .dataTables_length select {
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-left: 0.5rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #9ca3af;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .dataTables_wrapper .dataTables_paginate {
        justify-content: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: nowrap;
    }
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.dataTables_wrapper .dataTables_paginate .page-item {
    list-style: none;
}

@media (max-width: 640px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .dataTables_wrapper .dataTables_paginate .page-item .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .page-item .page-link:hover {
    background-color: #eef2ff;
    border-color: rgb(99 102 241);
    color: rgb(99 102 241);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: rgb(99 102 241) !important;
    color: #ffffff !important;
    border-color: rgb(99 102 241) !important;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover {
    background: rgb(79 70 229) !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

/* Bootstrap Pagination Override for DataTables */
.dataTables_wrapper .pagination,
.pagination {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.dataTables_wrapper .pagination .page-item,
.pagination .page-item,
.pagination li,
.dataTables_wrapper .pagination li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dataTables_wrapper .pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}

.dataTables_wrapper .pagination .page-link:hover {
    background-color: #eef2ff;
    border-color: rgb(99 102 241);
    color: rgb(99 102 241);
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: rgb(99 102 241) !important;
    border-color: rgb(99 102 241) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.dataTables_wrapper .pagination .page-item.active .page-link:hover {
    background-color: rgb(79 70 229) !important;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8fafc !important;
    color: #64748b !important;
}

@media (max-width: 640px) {
    .dataTables_wrapper .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Info text */
.dataTables_wrapper .dataTables_info {
    margin-top: 1rem;
    font-size: 13px !important;
    color: #6b7280;
    font-weight: 500;
}

/* DataTable filter */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px !important;
}

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

div.dataTables_processing > div:last-child > div {
    background-color: rgb(99 102 241) !important;
    width: 12px !important;
    height: 12px !important;
}

div.dataTables_processing > div:last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Sorting icons - remove default */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after,
.tailwind-datatable thead th.sorting:before,
.tailwind-datatable thead th.sorting:after,
.tailwind-datatable thead th.sorting_asc:before,
.tailwind-datatable thead th.sorting_asc:after,
.tailwind-datatable thead th.sorting_desc:before,
.tailwind-datatable thead th.sorting_desc:after {
    content: '';
    display: none;
}

/* Custom sorting icons */
.tailwind-datatable thead th.sorting,
.tailwind-datatable thead th.sorting_asc,
.tailwind-datatable thead th.sorting_desc,
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
    position: relative;
    padding-right: 28px !important;
    cursor: pointer;
    user-select: none;
}

.tailwind-datatable thead th.sorting:after,
table.dataTable thead > tr > th.sorting:after {
    content: '⬍' !important;
    display: inline-block !important;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.tailwind-datatable thead th.sorting:hover:after,
table.dataTable thead > tr > th.sorting:hover:after {
    color: rgba(255, 255, 255, 0.9);
}

.tailwind-datatable thead th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_asc:after {
    content: '▲' !important;
    display: inline-block !important;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #ffffff;
}

.tailwind-datatable thead th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_desc:after {
    content: '▼' !important;
    display: inline-block !important;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #ffffff;
}

/* Empty state */
.dataTables_empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

/* DataTable Badge Styling */
.tailwind-datatable td span.inline-flex {
    border-radius: 5px !important;
    padding: 8px !important;
}

.feed-content strong,
.feed-content b {
    color: #92400e !important;
}

.feed-content p {
    color: #334155 !important;
    margin-bottom: 8px !important;
    margin-top: 8px !important;
    line-height: 1.6 !important;
}

.feed-content hr {
    border-color: #e2e8f0 !important;
    margin: 16px 0 !important;
}

.feed-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
}

/* Tab Status Filter - Active State */
.tab-status a.active {
    background-color: rgb(99 102 241) !important;
    color: #ffffff !important;
    border-color: rgb(99 102 241) !important;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.tab-status a.active .material-symbols-outlined {
    color: #ffffff !important;
}

.tab-status a.active span {
    color: #ffffff !important;
}

/* Tab Status Filter - Inactive State */
.tab-status a:not(.active) {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.tab-status a:not(.active):hover {
    border-color: rgb(99 102 241);
}

/* ============================================
   DataTable Action Buttons
   ============================================ */
.tailwind-datatable .btn-cancel,
.tailwind-datatable button[id="cancel"] {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background-color: #dc2626;
    color: #ffffff;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
}

.tailwind-datatable .btn-cancel:hover,
.tailwind-datatable button[id="cancel"]:hover {
    background-color: #b91c1c;
}

.tailwind-datatable .btn-refill,
.tailwind-datatable button[id="refill"] {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background-color: #2563eb;
    color: #ffffff;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
}

.tailwind-datatable .btn-refill:hover,
.tailwind-datatable button[id="refill"]:hover {
    background-color: #1d4ed8;
}

.tailwind-datatable .btn-refund,
.tailwind-datatable button[id="refund"] {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background-color: #7c3aed;
    color: #ffffff;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
}

.tailwind-datatable .btn-refund:hover,
.tailwind-datatable button[id="refund"]:hover {
    background-color: #6d28d9;
}

/* ============================================
   Mobile DataTable - Center Search & Pagination
   ============================================ */
@media (max-width: 767px) {
    #main-content div.dataTables_wrapper div.dataTables_filter {
        text-align: center !important;
    }

    div.dataTables_wrapper div.dataTables_filter {
        text-align: center !important;
    }

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

    .dataTables_wrapper .dataTables_paginate {
        justify-content: center !important;
        display: flex !important;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center !important;
    }

    /* Mobile main content spacing */
    .mobile-main,
    #content {
        padding-top: 0 !important;
        margin-top: 32px !important;
    }
}

.tailwind-datatable .table-responsive {
    overflow-x: auto !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    display: flex !important;
    gap: 5px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.active {
    background: rgb(38 155 146 / var(--tw-bg-opacity, 1)) !important;
    color: #fff !important;
}

*::-webkit-scrollbar-thumb {
    background: #6366f1 !important;
}

/* DataTable header/footer center align */
table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
table.dataTable tfoot td {
    text-align: center !important;
}