/*
* Warna di bawah ini adalah warna default dari tema barka
* Silakan ubah nilainya jika menginginkan warna lain
* Kode warna dapat diperoleh melalui situs color picker / color palette
*/
:root {
  --primary-color: #990000;
  --secondary-color: #d92626;
  --accent-color: #ffff00;
  --loader-color:#660000;
}
.theme-dark {
  --primary-color: #5b21b6; /* darker purple */
  --secondary-color: #7c3aed; /* purple */
  --accent-color: #a78bfa; /* light purple */
  --bg-gradient-start: #1e293b; /* darker slate */
  --bg-gradient-end: #0f172a; /* darkest slate */
}

/* --- Pagination Horizontal Bootstrap Style --- */
.pagination {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin: 20px 0;
}
.pagination .page-item {
  display: inline-block !important;
  margin: 0 2px;
}
.pagination .page-link {
  border-radius: 4px;
  color: #007bff;
  background: #fff;
  border: 1px solid #dee2e6;
  padding: 6px 12px;
  transition: background 0.2s;
}
.pagination .page-item.active .page-link {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.pagination .page-link:hover {
  background: #e9ecef;
  color: #0056b3;
}

/* Dark theme pagination */
.theme-dark .pagination {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin: 20px 0;
}
.theme-dark .pagination .page-item {
  display: inline-block !important;
  margin: 0 2px;
}
.theme-dark .pagination .page-link {
  border-radius: 4px;
  color: #a78bfa;
  background: #1f2937;
  border: 1px solid #374151;
  padding: 6px 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.theme-dark .pagination .page-item.active .page-link {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
.theme-dark .pagination .page-link:hover {
  background: #5b21b6;
  color: #e9d5ff;
  border-color: #7c3aed;
}

/* --- Dark Theme Overrides for Home --- */
.theme-dark {
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: #ecf0f1;
}
.theme-dark a { color: #ecf0f1; }
.theme-dark a:hover { color: var(--accent-color); }
.theme-dark .text-muted { color: #cbd5e1; }
.theme-dark .text-title { color: #ecf0f1; }
.theme-dark .bg-white { background-color: #1f2937; color: #ecf0f1; }
.theme-dark .bg-gray-300 { background-color: #334155; }
.theme-dark .bg-gray-200 { background-color: #2b3640; }
.theme-dark .bg-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); }

/* Improve borders/dividers on dark */
.theme-dark .border,
.theme-dark .divide-x-2 > *,
.theme-dark .divide-y-2 > * { border-color: rgba(255, 255, 255, 0.15) !important; }
.theme-dark input[type="search"],
.theme-dark input[type="text"],
.theme-dark select,
.theme-dark textarea {
  background-color: #1f2937;
  color: #ecf0f1;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.theme-dark input::placeholder,
.theme-dark textarea::placeholder { color: #cbd5e1; }

/* Home floating button on dark */
.theme-dark .home-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1f2937;
  color: #ecf0f1;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 12px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.theme-dark .home-button:hover { color: var(--accent-color); border-color: var(--primary-color); }

/* Dark cards/panels polish */
.theme-dark .bg-white {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-dark .bg-white:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  transition: box-shadow 0.2s ease;
}
.theme-dark .shadow-md { box-shadow: 0 8px 20px rgba(0,0,0,0.35) !important; }
.theme-dark .text-gray-500 { color: #cbd5e1 !important; }
.theme-dark .text-gray-400 { color: #d1d5db !important; }

/* Button hovers on dark */
.theme-dark .bg-secondary {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #8b5cf6 100%) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

/* Glossy shine effect */
.theme-dark .bg-secondary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}
5px rgba(91, 33, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Apply to bg-secondary/bg-primary only when used as button */
.theme-dark button.bg-secondary,
.theme-dark button.bg-primary {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a78bfa 100%) !important;
  box-shadow: 0 8px 25px rgba(91, 33, 182, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}
.theme-dark .bg-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.5);
}

/* Modern Button Styles with Animations */
/* Exclude date badges from button animations */
.theme-dark button:not(.menu-button),
.theme-dark a.bg-secondary:not([class*="absolute"]),
.theme-dark a.bg-primary:not([class*="absolute"]) {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Date badge stays in place - no animations */
/* Force date badge to stay at TOP LEFT */
div.absolute.top-0.left-0.bg-secondary,
.absolute.bg-secondary {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: auto !important;
  overflow: visible !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: none !important;
  transform: none !important;
}

.theme-dark .absolute.bg-secondary {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: auto !important;
  overflow: visible !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: none !important;
  transform: none !important;
}

.theme-dark button.bg-secondary,
.theme-dark button.bg-primary {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-dark button::before,
.theme-dark a.bg-secondary:not([class*="absolute"])::before,
.theme-dark a.bg-primary:not([class*="absolute"])::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.theme-dark button:hover::before,
.theme-dark a.bg-secondary:not([class*="absolute"]):hover::before,
.theme-dark a.bg-primary:not([class*="absolute"]):hover::before {
.theme-dark button.bg-primary:hover::before,
.theme-dark a.bg-s:hover::before,
.theme-dark a.bg-secondary:not([class*="absolute"]):hover::before,
.theme-dark a.bg-primary:not([class*="absolute"]):hover::before {
  width: 300px;
  height: 300px;
}

.theme-dark button:hover,
.theme-dark a.bg-secondary:not([class*="absolute"]):hover,
.theme-dark a.bg-primary:not([class*="absolute"]):hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(91, 33, 182, 0.6), 0 0 40px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-dark button:active,
.theme-dark a.bg-secondary:not([class*="absolute"]):active,
.theme-dark a.bg-primary:not([class*="absolute"])-1px);
  box-shadow: 0 5px 15px rgba(91, 33, 182, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Pulse animation for primary buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 33, 182, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(91, 33, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 33, 182, 0);
  }
}

.theme-dark a.bg-secondary:hover,
.theme-dark button.bg-secondary:hover {
  animation: pulse 1.5s infinite;
}
not([class*="absolute"]):hover,
.theme-dark button.bg-secondary:hover {
  animation: pulse 1.5s infinite;
}

/* Icon inside buttons */
.theme-dark button i,
.theme-dark a.bg-secondary:not([class*="absolute"]) i,
.theme-dark a.bg-primary:not([class*="absolute"]) i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.theme-dark button:hover i,
.theme-dark a.bg-secondary:not([class*="absolute"]):hover i,
.theme-dark a.bg-primary:not([class*="absolute"])