/* 
 * Global Admin Dark Theme CSS Override
 * Include this file in all admin pages for consistent dark theme
 */

/* Global Dark Theme Variables */
:root {
    --admin-bg-primary: #111827;
    --admin-bg-secondary: #1f2937;
    --admin-bg-tertiary: #374151;
    --admin-text-primary: #f9fafb;
    --admin-text-secondary: #e5e7eb;
    --admin-text-muted: #d1d5db;
    --admin-border-primary: #374151;
    --admin-border-secondary: #4b5563;
}

/* Force dark theme for all admin pages */
body {
    background-color: var(--admin-bg-primary) !important;
    color: var(--admin-text-secondary) !important;
}

/* Card and Container Overrides */
.bg-white {
    background-color: var(--admin-bg-secondary) !important;
    border: 1px solid var(--admin-border-primary) !important;
}

.bg-gray-50 {
    background-color: #0f172a !important;
}

.bg-gray-100 {
    background-color: var(--admin-bg-secondary) !important;
}

/* Text Color Overrides */
.text-gray-800,
.text-gray-700 {
    color: var(--admin-text-primary) !important;
}

.text-gray-600 {
    color: var(--admin-text-secondary) !important;
}

.text-gray-500 {
    color: var(--admin-text-muted) !important;
}

/* Border Overrides */
.border-gray-200,
.border-gray-300 {
    border-color: var(--admin-border-primary) !important;
}

.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--admin-border-secondary) !important;
}

/* Form Input Overrides */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
textarea,
select {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: var(--admin-text-primary) !important;
}

/* More specific input field overrides for admin pages */
.admin-input,
input.w-full,
select.w-full,
textarea.w-full {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Force styling on all form elements within admin pages */
body input,
body select,
body textarea {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Specific overrides for bulk operations and admin forms */
#bulkUpdateForm input,
#bulkUpdateForm select,
#bulkUpdateByRangeForm input,
#bulkUpdateByRangeForm select,
.bulk-operations input,
.bulk-operations select,
form input[type="date"],
form input[type="time"],
form input[type="text"],
form select {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Ensure all input fields in admin pages are dark themed */
input[type="text"]:not([class*="bg-"]),
input[type="date"]:not([class*="bg-"]),
input[type="time"]:not([class*="bg-"]),
select:not([class*="bg-"]) {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background-color: #374151 !important;
    border-color: #3b82f6 !important;
    color: var(--admin-text-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}

/* Table Overrides */
table thead th {
    background-color: var(--admin-bg-tertiary) !important;
    color: var(--admin-text-secondary) !important;
    border-color: var(--admin-border-primary) !important;
}

table tbody td {
    background-color: var(--admin-bg-secondary) !important;
    color: var(--admin-text-secondary) !important;
    border-color: var(--admin-border-primary) !important;
}

table tbody tr:hover td {
    background-color: var(--admin-bg-tertiary) !important;
}

/* Hover Effects */
.hover\:bg-gray-50:hover {
    background-color: var(--admin-bg-tertiary) !important;
}

.hover\:bg-white:hover {
    background-color: var(--admin-bg-tertiary) !important;
}

/* Modal Overrides */
.modal-content,
.bg-white.rounded-xl {
    background-color: var(--admin-bg-secondary) !important;
    border: 1px solid var(--admin-border-primary) !important;
}

/* Header and Navigation */
header {
    background-color: var(--admin-bg-secondary) !important;
    border-color: var(--admin-border-primary) !important;
}

/* Button Improvements */
.bg-gray-500 {
    background-color: #4b5563 !important;
}

.bg-gray-500:hover {
    background-color: #6b7280 !important;
}

/* DataTables Dark Theme */
.dataTables_wrapper {
    color: var(--admin-text-secondary) !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--admin-text-secondary) !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--admin-bg-tertiary) !important;
    border: 1px solid var(--admin-border-primary) !important;
    color: var(--admin-text-secondary) !important;
}

/* Status and Badge Colors (maintain visibility) */
.bg-blue-100 { background-color: rgba(59, 130, 246, 0.2) !important; }
.bg-green-100 { background-color: rgba(16, 185, 129, 0.2) !important; }
.bg-red-100 { background-color: rgba(239, 68, 68, 0.2) !important; }
.bg-yellow-100 { background-color: rgba(245, 158, 11, 0.2) !important; }
.bg-purple-100 { background-color: rgba(139, 92, 246, 0.2) !important; }

.text-blue-800 { color: #93c5fd !important; }
.text-green-800 { color: #6ee7b7 !important; }
.text-red-800 { color: #fca5a5 !important; }
.text-yellow-800 { color: #fcd34d !important; }
.text-purple-800 { color: #c4b5fd !important; }

/* Scrollbar Styling for Dark Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--admin-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--admin-border-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Ensure proper contrast for all text */
.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Menu Dark Theme */
#mobileMenu {
    background-color: var(--admin-bg-secondary) !important;
    border-color: var(--admin-border-primary) !important;
}

/* Success and Error Messages */
.bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.bg-green-50 {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.text-red-700 {
    color: #fca5a5 !important;
}

.text-green-700 {
    color: #6ee7b7 !important;
}

/* Additional comprehensive overrides to handle any conflicting styles */
/* Force all admin form elements to use dark theme */
*[class*="border-gray-300"] {
    border-color: #4b5563 !important;
}

*[class*="bg-white"] {
    background-color: var(--admin-bg-secondary) !important;
}

*[class*="bg-gray-50"] {
    background-color: #0f172a !important;
}

/* Ensure all text maintains proper contrast */
*[class*="text-gray-800"],
*[class*="text-gray-700"] {
    color: var(--admin-text-primary) !important;
}

*[class*="text-gray-600"] {
    color: var(--admin-text-secondary) !important;
}

*[class*="text-gray-500"] {
    color: var(--admin-text-muted) !important;
}

/* Override any remaining light borders */
*[class*="border-gray-200"] {
    border-color: var(--admin-border-primary) !important;
}

/* Ensure checkboxes and other form controls are visible */
input[type="checkbox"],
input[type="radio"] {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Force dark theme on any remaining elements */
.rounded-lg,
.rounded-xl,
.rounded-2xl {
    border: 1px solid var(--admin-border-primary);
}

/* Additional table styling */
table th {
    background-color: var(--admin-bg-tertiary) !important;
    color: var(--admin-text-secondary) !important;
}

table td {
    background-color: var(--admin-bg-secondary) !important;
    color: var(--admin-text-secondary) !important;
}

/* Cute and Compact Card Styling */
.cute-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.cute-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
}

/* Compact Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 0.875rem !important;
    padding: 1rem !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0.7;
}

.stat-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Compact Form Cards */
.form-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.form-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Ultra-specific input field overrides to ensure no white backgrounds */
input:not([style*="background"]):not([class*="bg-white"]),
select:not([style*="background"]):not([class*="bg-white"]),
textarea:not([style*="background"]):not([class*="bg-white"]) {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Override any remaining white backgrounds with higher specificity */
*[class*="bg-white"] input,
*[class*="bg-white"] select,
*[class*="bg-white"] textarea,
.bg-white input,
.bg-white select,
.bg-white textarea {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Ensure focus states are properly styled */
input:focus,
select:focus,
textarea:focus {
    background-color: #374151 !important;
    border-color: #3b82f6 !important;
    color: #f9fafb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Enhanced Text Visibility and Contrast */
.text-gray-900,
.text-black {
    color: #f9fafb !important;
}

.text-gray-800 {
    color: #e5e7eb !important;
}

.text-gray-700 {
    color: #d1d5db !important;
}

.text-gray-600 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

/* Enhanced Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    transform: translateY(-1px) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Enhanced Table Styling */
.table-enhanced {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
}

.table-enhanced thead th {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    color: #f9fafb !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border: none !important;
}

.table-enhanced tbody td {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 1rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2) !important;
}

.table-enhanced tbody tr:hover td {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    color: #f9fafb !important;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.status-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3)) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.status-inactive {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.3)) !important;
    color: #d1d5db !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
}

.status-suspended {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.status-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3)) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.status-failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 1.5rem !important;
}

.form-label {
    display: block !important;
    font-weight: 600 !important;
    color: #e5e7eb !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
}

.form-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.5) !important;
    border-radius: 0.5rem !important;
    color: #f9fafb !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

.form-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.form-input::placeholder {
    color: #9ca3af !important;
}

/* Enhanced Alert Messages */
.alert {
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-weight: 500 !important;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.15)) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.15)) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.15)) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fcd34d !important;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.15)) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

/* Enhanced Page Headers */
.page-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.page-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #f9fafb !important;
    margin-bottom: 0.5rem !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.page-subtitle {
    color: #9ca3af !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* Enhanced Filter Cards */
.filter-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.filter-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #f9fafb !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Enhanced Statistics Cards */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.stat-card-enhanced {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-card-enhanced::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) !important;
    opacity: 0.8 !important;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

.stat-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #f9fafb !important;
    margin-bottom: 0.5rem !important;
}

.stat-label {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.375rem !important;
}

.btn-xs {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.25rem !important;
}

/* Enhanced Modal Styling */
.modal-enhanced {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3) !important;
    padding: 1.5rem !important;
    border-radius: 1rem 1rem 0 0 !important;
}

.modal-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #f9fafb !important;
}

.modal-body {
    padding: 1.5rem !important;
    color: #e5e7eb !important;
}

.modal-footer {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-top: 1px solid rgba(75, 85, 99, 0.3) !important;
    padding: 1.5rem !important;
    border-radius: 0 0 1rem 1rem !important;
}

/* Enhanced DataTables Styling */
.dataTables_wrapper {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #e5e7eb !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.5) !important;
    color: #f9fafb !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border: 1px solid rgba(75, 85, 99, 0.3) !important;
    color: #e5e7eb !important;
    border-radius: 0.375rem !important;
    margin: 0 0.125rem !important;
    padding: 0.5rem 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
    color: #f9fafb !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
    }
    
    .page-header {
        padding: 1.5rem !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
}