/* =========================================
   eKoperasi Modern - Admin Theme
   ========================================= */

/* -----------------------------------------
   1. BACKGROUND ANIMATIONS & GRADIENTS
   ----------------------------------------- */
:root {
  /* Default Admin Theme (Blue) */
  --theme-primary-start: #2563eb;
  /* blue-600 */
  --theme-primary-end: #3b82f6;
  /* blue-500 */
  --theme-secondary: #1e40af;
  /* blue-800 */
  --theme-accent: #60a5fa;
  /* blue-400 */
  --theme-bg-light: #eff6ff;
  /* blue-50 */
  --theme-text-main: #2563_eb;
  /* blue-600 */
}

/* Bendahara Theme (Indigo/Violet) - Isolated */
.theme-bendahara {
  --theme-primary-start: #4338ca;
  /* indigo-700 */
  --theme-primary-end: #6366f1;
  /* indigo-500 */
  --theme-secondary: #312e81;
  /* indigo-900 */
  --theme-accent: #818cf8;
  /* indigo-400 */
  --theme-bg-light: #eef2ff;
  /* indigo-50 */
  --theme-text-main: #4f46e5;
  /* indigo-600 */
}

.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #ffffff;
}

.bg-red-gradient {
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
}

.bg-blue-gradient,
.bg-theme-gradient {
  background: linear-gradient(135deg, var(--theme-primary-start) 0%, var(--theme-primary-end) 100%);
}

/* Theme Utilities */
.text-theme-main {
  color: var(--theme-text-main) !important;
}

.bg-theme-light {
  background-color: var(--theme-bg-light) !important;
}

.border-theme-main {
  border-color: var(--theme-text-main) !important;
}

.hover\:text-theme-main:hover {
  color: var(--theme-text-main) !important;
}

.hover\:bg-theme-light:hover {
  background-color: var(--theme-bg-light) !important;
}

.group:hover .group-hover\:text-theme-main {
  color: var(--theme-text-main) !important;
}


.bg-animate-blue {
  background: linear-gradient(-45deg, #1e40af, #2563eb, #3b82f6, #60a5fa);
  background-size: 400% 400%;
  animation: gradient-flow 10s ease infinite;
}

/* SUNRISE ANIMATION - More vibrant */
.bg-sunrise-animate {
  background: linear-gradient(180deg, #FF7E5F, #FEB47B, #FF9966, #FF5E62, #99F2C8);
  background-size: 400% 400%;
  animation: sunrise-flow 12s ease-in-out infinite;
}

/* RED & NAVY BUTTON ANIMATION */
.bg-animate-red-navy {
  background: linear-gradient(-45deg, #DC2626, #1E3A8A, #B91C1C, #172554);
  background-size: 300% 300%;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes sunrise-flow {
  0% {
    background-position: 50% 0%;
  }

  50% {
    background-position: 50% 100%;
  }

  100% {
    background-position: 50% 0%;
  }
}

/* -----------------------------------------
   2. DATATABLES CUSTOMIZATION
   ----------------------------------------- */
/* BASE WRAPPER - NO SCROLL */
.dataTables_wrapper {
  width: 100%;
  overflow: visible;
}

/* Search Input */
div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Length Select */
div.dataTables_wrapper div.dataTables_length select {
  border-radius: 0.5rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  outline: none;
}

/* FORCE: Align Length and Filter on same line */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  display: inline-block !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_length {
  float: left !important;
}

.dataTables_wrapper .dataTables_filter {
  float: right !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 0.875rem;
  color: #64748b;
}

/* Clear float after controls */
.dataTables_wrapper .dataTables_length::after,
.dataTables_wrapper .dataTables_filter::after {
  content: "";
  display: table;
  clear: both;
}

/* CRITICAL: Prevent overflow-x-auto from triggering scroll mode */
div.dataTables_wrapper>div:not(.dataTables_length):not(.dataTables_filter):not(.dataTables_info):not(.dataTables_paginate) {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Table Headers */
table.dataTable thead th {
  border-bottom: 2px solid #e2e8f0 !important;
  color: #475569;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 1rem !important;
}

/* Table Cells */
table.dataTable tbody td {
  padding: 1rem !important;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-size: 0.875rem;
}

table.dataTable tr:hover td {
  background-color: #f8fafc;
}

/* Pagination - Plain DataTables */
.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: none;
  border-radius: 0.375rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px -1px rgb(37 99 235 / 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background-color: #1d4ed8;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background-color: transparent;
  color: #cbd5e1;
}

/* NUCLEAR OPTION: KILL ALL DATATABLES SCROLLING */
.dataTables_wrapper,
.dataTables_wrapper>div,
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody,
.dataTables_wrapper .dataTables_scrollFoot,
.dataTables_wrapper .dataTables_scrollHead>.dataTables_scrollHeadInner,
.dataTables_wrapper .dataTables_scrollBody>table,
.dataTables_scrollBody,
div.dataTables_scrollBody {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

/* Force table to full width without scroll */
.dataTables_wrapper table {
  width: 100% !important;
  height: auto !important;
}

/* Remove any scroll wrapper styling */
.dataTables_scroll {
  overflow: visible !important;
  clear: both !important;
}

.dataTables_scrollBody {
  overflow: visible !important;
  -webkit-overflow-scrolling: auto !important;
}

.dataTables_scrollHead,
.dataTables_scrollFoot {
  overflow: visible !important;
}

/* ULTIMATE FIX: Hide scrollbars at browser level */
.dataTables_wrapper *::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar,
div.dataTables_scrollBody::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.dataTables_wrapper *,
.dataTables_scrollBody,
div.dataTables_scrollBody {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Soft Shadow Utility */
.shadow-soft {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}