@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-heading: 'Orbitron', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --color-cinema-red: #E50914;
  --color-cinema-red-dark: #B8000B;
}

body {
  font-family: var(--font-body);
}

.font-heading, .font-cinema {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.font-mono-stat {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Modern Mobile Shaped Dock Navigation (Latest UI/UX Style with Shapes)
   ========================================================================== */
.mobile-dock-container {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 45;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px;
}

/* Ambient Top Flare Shape */
.mobile-dock-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.7), transparent);
  border-radius: 9999px;
  pointer-events: none;
}

/* Dock Tab Item */
.mobile-dock-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 5px 2px;
  color: #94A3B8;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.mobile-dock-tab:active {
  transform: scale(0.9);
}

.mobile-dock-tab .tab-icon-shape {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dock-tab .tab-label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

/* Active and Hover State with Shapes */
.mobile-dock-tab:hover,
.mobile-dock-tab.active {
  color: #FFFFFF;
}

.mobile-dock-tab:hover .tab-icon-shape,
.mobile-dock-tab.active .tab-icon-shape {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mobile-dock-tab .tab-active-dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #E50914;
  box-shadow: 0 0 8px #E50914;
  margin-top: 2px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.mobile-dock-tab.active .tab-active-dot {
  opacity: 1;
  transform: scale(1);
}

/* Center Elevated Squircle Floating Action Button (Big Home Button) */
.mobile-dock-center {
  position: relative;
  top: -22px;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FF2E3B 0%, #E50914 50%, #990008 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -2px rgba(229, 9, 20, 0.7), 0 0 0 4px rgba(15, 23, 42, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  z-index: 50;
  margin: 0 2px;
}

.mobile-dock-center:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 32px 0 rgba(229, 9, 20, 0.8), 0 0 0 4px rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
}

.mobile-dock-center:active {
  transform: scale(0.92);
}

.mobile-dock-center .center-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

.mobile-dock-center.active {
  box-shadow: 0 16px 32px 0 rgba(229, 9, 20, 0.85), 0 0 0 4px rgba(15, 23, 42, 0.95), 0 0 18px rgba(229, 9, 20, 0.5);
}


/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E50914;
}

/* Datatable animations */
.table-fade-in {
  animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DataTables CDN Integration & DaisyUI/Tailwind Harmonization
   ========================================================================== */
.dataTables_wrapper {
  position: relative;
  clear: both;
  width: 100%;
}

/* Remove default table borders that conflict with DaisyUI table-zebra */
.dataTables_wrapper table.dataTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-bottom: none !important;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 0.75rem 1rem !important;
}

.dataTables_wrapper table.dataTable tbody td {
  padding: 0.75rem 1rem !important;
}

.dataTables_wrapper table.dataTable.no-footer {
  border-bottom: none !important;
}

/* Hide default single search input because we provide full filter bar */
.dataTables_wrapper .dataTables_filter {
  display: none !important;
}

/* DataTables Length Menu (entries per page) */
.dataTables_wrapper .dataTables_length {
  font-size: 0.75rem;
  color: #64748B;
  display: flex;
  align-items: center;
}

.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #1E293B;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: #E50914;
}

/* DataTables Info Text */
.dataTables_wrapper .dataTables_info {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
  padding-top: 0 !important;
}

/* DataTables Pagination */
.dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.65rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  color: #475569 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease-in-out !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #FEF2F2 !important;
  color: #E50914 !important;
  border-color: #FCA5A5 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #E50914 !important;
  color: #FFFFFF !important;
  border-color: #E50914 !important;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  background: #F8FAFC !important;
  color: #94A3B8 !important;
  border-color: #E2E8F0 !important;
  box-shadow: none !important;
}

