/* System font stack - works offline without Google Fonts */

/* --- Global modal overlay with backdrop blur --- */
.modal {
  background: rgba(0, 0, 0, 0.6) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-input: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
}

html.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #253349;
  --bg-input: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(99, 102, 241, 0.15);
  /* Credit Monitor specific */
  --cm-info-bg: rgba(245, 158, 11, 0.1);
  --cm-info-border: rgba(245, 158, 11, 0.25);
  --cm-info-text: #fbbf24;
  --cm-error-bg: rgba(239, 68, 68, 0.1);
  --cm-error-border: rgba(239, 68, 68, 0.25);
  --cm-error-text: #fca5a5;
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ===== GLOBAL CUSTOM SCROLLBAR ===== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
}

::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* Dark mode scrollbar */
html.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

html.dark ::-webkit-scrollbar-thumb {
  border-color: #334155;
}

html.dark ::-webkit-scrollbar-corner {
  background: #1e293b;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5f9;
}

html.dark * {
  scrollbar-color: #6366f1 #1e293b;
}

/* Thin scrollbar variant for nested containers */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}


/* ===== CUSTOM RADIO BUTTONS ===== */
.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-radio:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-radio:checked {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-radio:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.custom-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark mode radio */
html.dark .custom-radio {
  border-color: #475569;
  background: #334155;
}

html.dark .custom-radio:hover {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}


/* ===== CUSTOM CHECKBOXES ===== */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-checkbox:checked {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark mode checkbox */
html.dark .custom-checkbox {
  border-color: #475569;
  background: #334155;
}

html.dark .custom-checkbox:hover {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}



/* Tab Button Animations */
.tab-link {
  position: relative;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.tab-link.active-tab::after {
  background-color: #4f46e5;
  transform: scaleX(1);
}

/* Tab Content Transitions */
.tab-content {
  transition: opacity 0.3s ease-in-out;
}

/* Stats Card Animations */
.stat-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #6366f1;
}

.stat-card:hover .stat-number {
  transform: scale(1.05);
  color: #4f46e5;
}

.stat-number {
  transition: all 0.3s ease;
}

/* Sidebar Filters - Fixed Full Height */
.filter-sidebar {
  position: fixed;
  top: 80px;
  left: 16px;
  width: 280px;
  height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 40;
}

.filter-sidebar::-webkit-scrollbar {
  width: 4px;
}

.filter-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(99, 102, 241, 0.5);
}

/* Tab content layout with sidebar */
.tab-layout-with-sidebar {
  display: flex;
  gap: 1.5rem;
}

/* Placeholder for fixed sidebar space */
.tab-layout-with-sidebar>aside {
  width: 280px;
  flex-shrink: 0;
}

/* Main content area */
.tab-layout-with-sidebar>.flex-1 {
  flex: 1;
  min-width: 0;
}

/* Chat Widget Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.animate-slide-down {
  animation: slideDown 0.2s ease-in forwards;
}

/* Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  background: transparent;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  /* Show when .show is added */
}

.modal-content-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}

/* Modal Tabs */
.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.modal-tab-link.active {
  color: #4f46e5;
  /* indigo-600 */
  border-bottom-color: #4f46e5;
  /* indigo-600 */
  font-weight: 600;
}

/* Heatmap Styles */
.region-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .region-map {
    grid-template-columns: repeat(2, 1fr);
  }
}

.region-cell {
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.region-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.region-green {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.region-yellow {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.region-orange {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.region-red {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Source Tags */
.source-tag {
  transition: all 0.2s ease;
}

.source-tag-active {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.chart-container-modal {
  position: relative;
  height: 250px;
  width: 100%;
  margin: 1rem auto;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #a0aec0;
  border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.chat-chart-container {
  position: relative;
  height: 250px;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  background-color: #f7fafc;
  border-radius: 0.5rem;
}

/* Report Cards */
.report-card {
  transition: all 0.2s ease-in-out;
}

.report-card:hover {
  transform: translateY(-2px);
}

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

/* Notification Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Full screen tab content (breaking out of parent padding) */
.tab-full-screen {
  margin: -1.5rem;
  /* p-6 compensation */
  width: calc(100% + 3rem);
  height: calc(100vh - 64px);
  /* Approximate header height compensation */
}

@media (min-width: 768px) {
  .tab-full-screen {
    margin: -2.5rem;
    /* md:p-10 compensation */
    width: calc(100% + 5rem);
  }
}

/* Text Regeneration Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

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

.text-regenerating {
  background: linear-gradient(90deg,
      rgba(99, 102, 241, 0.1) 0%,
      rgba(99, 102, 241, 0.3) 25%,
      rgba(139, 92, 246, 0.4) 50%,
      rgba(99, 102, 241, 0.3) 75%,
      rgba(99, 102, 241, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
  padding: 2px 4px;
  display: inline;
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.text-pulse {
  animation: pulse-text 1s infinite;
}

/* ===== COMPREHENSIVE DARK MODE OVERRIDES ===== */
/* These globally override common Tailwind utility patterns used across all modules */

/* --- Cards & Panels --- */
html.dark .bg-white {
  background-color: #1e293b !important; /* slate-800 */
}

html.dark .bg-gray-50 {
  background-color: #1e293b !important;
}

html.dark .bg-gray-100 {
  background-color: #0f172a !important; /* slate-900 */
}

html.dark .bg-indigo-50 {
  background-color: rgba(99, 102, 241, 0.1) !important;
}

html.dark .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.15) !important;
}

html.dark .border-indigo-200 {
  border-color: rgba(99, 102, 241, 0.3) !important;
}

html.dark .text-indigo-700 {
  color: #a5b4fc !important;
}

/* --- Text --- */
html.dark .text-gray-900 {
  color: #f1f5f9 !important; /* slate-100 */
}

html.dark .text-gray-800 {
  color: #e2e8f0 !important; /* slate-200 */
}

html.dark .text-gray-700 {
  color: #cbd5e1 !important; /* slate-300 */
}

html.dark .text-gray-600 {
  color: #94a3b8 !important; /* slate-400 */
}

html.dark .text-gray-500 {
  color: #64748b !important; /* slate-500 -- keep readable */
}

/* --- Borders --- */
html.dark .border-gray-200 {
  border-color: #334155 !important; /* slate-700 */
}

html.dark .border-gray-300 {
  border-color: #475569 !important; /* slate-600 */
}

html.dark .border-gray-100 {
  border-color: #334155 !important;
}

/* --- Inputs & Selects --- */
html.dark input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
html.dark select,
html.dark textarea {
  background-color: #334155 !important; /* slate-700 */
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

/* --- Filter Sidebar --- */
html.dark .filter-sidebar {
  background-color: #1e293b !important;
  border-color: #334155;
}

/* --- Stat Cards --- */
html.dark .stat-card:hover {
  border-color: #818cf8 !important;
}

/* Stat card icon containers in dark mode */
html.dark .stat-card .bg-gray-100 {
  background-color: rgba(52, 211, 153, 0.15) !important;
}

html.dark .stat-card .text-gray-500 {
  color: #34d399 !important;
}

/* Active stat card icon in dark mode */
html.dark .stat-card .bg-indigo-100 {
  background-color: rgba(52, 211, 153, 0.2) !important;
}

html.dark .stat-card .text-indigo-600 {
  color: #34d399 !important;
}

/* --- Tab Links --- */
html.dark .tab-link {
  color: #94a3b8;
}

html.dark .tab-link:hover {
  color: #c7d2fe;
}

html.dark .tab-link.active-tab {
  color: #818cf8;
}

html.dark .tab-link.active-tab::after {
  background-color: #818cf8;
}

/* --- Modal Tab Links --- */
html.dark .modal-tab-link.active {
  color: #818cf8;
  border-bottom-color: #818cf8;
}

/* --- Region Heatmap --- */
html.dark .region-green {
  background-color: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

html.dark .region-yellow {
  background-color: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fde68a;
}

html.dark .region-orange {
  background-color: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fdba74;
}

html.dark .region-red {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* --- Source Tags --- */
html.dark .source-tag {
  background-color: #334155;
  color: #94a3b8;
}

/* --- Chat Container --- */
html.dark .chat-chart-container {
  background-color: #1e293b;
}

/* --- Custom Scrollbar in dark --- */
html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #475569;
}

html.dark .custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

/* --- Shadows (softer in dark) --- */
html.dark .shadow,
html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg,
html.dark .shadow-xl,
html.dark .shadow-2xl {
  --tw-shadow-color: rgba(0, 0, 0, 0.4);
}

/* --- Hover states --- */
html.dark .hover\:bg-gray-50:hover {
  background-color: #334155 !important;
}

html.dark .hover\:bg-gray-100:hover {
  background-color: #334155 !important;
}

html.dark .hover\:bg-gray-200:hover {
  background-color: #475569 !important;
}

/* --- Notification toast in dark --- */
html.dark [style*="background: #f0fdf4"],
html.dark [style*="background: #fef2f2"],
html.dark [style*="background: #eff6ff"],
html.dark [style*="background: #fefce8"] {
  filter: brightness(0.8);
}

/* --- Code/Pre blocks --- */
html.dark pre,
html.dark code {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

/* --- Focus ring offset for dark bg --- */
html.dark .focus\:ring-offset-2:focus {
  --tw-ring-offset-color: #1e293b;
}

/* --- Colored -50 backgrounds (risk cards, alerts, info boxes) --- */
html.dark .bg-red-50 {
  background-color: rgba(239, 68, 68, 0.1) !important;
}

html.dark .bg-orange-50 {
  background-color: rgba(249, 115, 22, 0.1) !important;
}

html.dark .bg-yellow-50 {
  background-color: rgba(234, 179, 8, 0.1) !important;
}

html.dark .bg-indigo-50 {
  background-color: rgba(99, 102, 241, 0.3) !important;
}

/* Active stat card ring in dark mode */
html.dark .ring-indigo-500 {
  --tw-ring-color: rgba(99, 102, 241, 0.6) !important;
}

html.dark .bg-green-50 {
  background-color: rgba(34, 197, 94, 0.1) !important;
}

html.dark .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* --- Colored -100 backgrounds (icon containers, badges) --- */
html.dark .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.2) !important;
}

html.dark .bg-red-100 {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

html.dark .bg-orange-100 {
  background-color: rgba(249, 115, 22, 0.2) !important;
}

html.dark .bg-yellow-100 {
  background-color: rgba(234, 179, 8, 0.2) !important;
}

html.dark .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

html.dark .bg-green-200 {
  background-color: rgba(34, 197, 94, 0.25) !important;
}

html.dark .bg-red-200 {
  background-color: rgba(239, 68, 68, 0.25) !important;
}

/* --- Severity badge text (keep readable in dark) --- */
html.dark .text-red-800 {
  color: #fca5a5 !important;
}

html.dark .text-orange-800 {
  color: #fdba74 !important;
}

html.dark .text-yellow-800 {
  color: #fde68a !important;
}

html.dark .text-green-800 {
  color: #86efac !important;
}

/* --- Colored borders --- */
html.dark .border-red-300 {
  border-color: rgba(239, 68, 68, 0.4) !important;
}

html.dark .border-orange-300 {
  border-color: rgba(249, 115, 22, 0.4) !important;
}

html.dark .border-yellow-300 {
  border-color: rgba(234, 179, 8, 0.4) !important;
}

/* --- Hover on indigo backgrounds --- */
html.dark .hover\:bg-indigo-50:hover {
  background-color: rgba(99, 102, 241, 0.15) !important;
}

html.dark .hover\:bg-green-100:hover {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

html.dark .hover\:bg-red-100:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

/* --- Purple tones (world practices) --- */
html.dark .bg-purple-50 {
  background-color: rgba(168, 85, 247, 0.1) !important;
}

html.dark .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.2) !important;
}

html.dark .border-purple-100 {
  border-color: rgba(168, 85, 247, 0.25) !important;
}

html.dark .text-purple-700 {
  color: #c4b5fd !important;
}

/* --- Blue border (facts box) --- */
html.dark .border-blue-100 {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

/* --- Orange border (anomaly box) --- */
html.dark .border-orange-100 {
  border-color: rgba(249, 115, 22, 0.25) !important;
}

/* --- Grey buttons (close, cancel) --- */
html.dark .bg-gray-200 {
  background-color: #334155 !important;
}

html.dark .bg-gray-300 {
  background-color: #475569 !important;
}

html.dark .hover\:bg-gray-300:hover {
  background-color: #475569 !important;
}

/* --- Gradient overrides for modal headers --- */
html.dark .from-slate-50 {
  --tw-gradient-from: #1e293b !important;
}

html.dark .to-gray-100 {
  --tw-gradient-to: #1e293b !important;
}

html.dark .from-indigo-50 {
  --tw-gradient-from: rgba(99, 102, 241, 0.15) !important;
}

html.dark .to-purple-50 {
  --tw-gradient-to: rgba(168, 85, 247, 0.1) !important;
}

/* --- Indigo active state text in dark --- */
html.dark .text-indigo-700 {
  color: #a5b4fc !important;
}

/* --- Risk card sphere/source labels --- */
html.dark .text-indigo-600 {
  color: #a5b4fc !important;
}

html.dark .text-slate-600 {
  color: #94a3b8 !important;
}

/* --- Like/Dislike/Favorites button backgrounds --- */
html.dark [class*="bg-white\/"] {
  background-color: #1e293b !important;
  border: 1px solid #475569;
}

html.dark .border-gray-300 {
  border-color: #475569 !important;
}

html.dark .hover\:bg-gray-100:hover {
  background-color: #334155 !important;
}

/* Like/Dislike icon visibility in dark mode */
html.dark [class*="bg-white\/"].text-gray-500 {
  color: #cbd5e1 !important;
}

/* --- Checkboxes in dark mode --- */
html.dark input[type="checkbox"] {
  accent-color: #818cf8;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #64748b;
  border-radius: 4px;
  background-color: #1e293b;
  cursor: pointer;
  position: relative;
}

html.dark input[type="checkbox"]:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}

html.dark input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Select dropdown arrow in dark mode --- */
html.dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px !important;
}