/* Base styles */

@import "tailwindcss";

:root {
  --blue-primary: #3b82f6;
  --blue-hover: #2563eb;
  --bg-main: #0b0b0c;
  --bg-sidebar: rgba(255, 255, 255, 0.05);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(255, 255, 255, 0.05);
  --text-main: #e3e3e3;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --border-main: rgba(255, 255, 255, 0.05);
  --border-input: rgba(255, 255, 255, 0.1);
  --bg-tooltip: #111827;
  --text-tooltip: #ffffff;
  --border-tooltip: rgba(255, 255, 255, 0.1);
}

.light {
  --bg-main: #f9f9f9;
  --bg-sidebar: #f0f0f0;
  --bg-card: #c8c8c88f;
  --bg-input: #f3f4f6;
  --text-main: #0f172a;
  --text-dim: #334155;
  --text-muted: #475569;
  --border-main: rgba(15, 23, 42, 0.12);
  --border-input: rgba(15, 23, 42, 0.18);
  --bg-tooltip: #ffffff;
  --text-tooltip: #111827;
  --border-tooltip: rgba(15, 23, 42, 0.12);
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  color-scheme: dark;
  supported-color-schemes: dark light;
}

.light {
  color-scheme: light !important;
}

.light body {
  color: var(--text-main) !important;
  background-color: var(--bg-main) !important;
}

* {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

select,
select option,
select optgroup,
input,
textarea {
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  color-scheme: dark;
}

select {
  background-image: none !important;
  accent-color: #3b82f6;
  border-color: var(--border-input) !important;
  appearance: none;
}

select option,
select optgroup {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
}

.light select,
.light select option,
.light select optgroup {
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  color-scheme: light;
}

.light select option,
.light select optgroup {
  background-color: var(--bg-card) !important;
}

select::-ms-expand {
  filter: invert(1) opacity(0.8);
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Glass effect refinement for light mode */
.light .glass {
  background: var(--bg-card) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-main) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08) !important;
}

.light .glass-hover:hover {
  background: var(--bg-card) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}

/* Metric card icons and content visibility in light mode */
.light [class*="rounded-xl"] [class*="bg-white/5"] {
  background-color: #f0f4f8 !important;
  color: #6b7280 !important;
}

.light [class*="rounded-2xl"] [class*="bg-white/5"] {
  background-color: #f0f4f8 !important;
  color: #6b7280 !important;
}

.light [class*="rounded-3xl"] [class*="bg-white/5"] {
  background-color: #f0f4f8 !important;
  color: #6b7280 !important;
}

/* Icon backgrounds in metric cards */
.light .p-2\.5\.rounded-xl,
.light .p-2.5[class*="rounded"] {
  background-color: #f0f4f8 !important;
  color: #6b7280 !important;
}

/* Ensure text in metric cards is visible */
.light [class*="glow-text"] {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

/* Card label text visibility */
.light .text-\[10px\].font-bold.text-gray-500 {
  color: #475569 !important;
}

.light [class*="text-\[11px\]"].font-medium.text-gray-500 {
  color: #64748b !important;
}

/* Ensure all metric/status boxes are visible */
.light .p-6[class*="rounded-2xl"],
.light .p-4[class*="rounded-xl"],
.light .p-8[class*="rounded-3xl"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

/* Section headers and container headers in light mode */
.light [class*="flex"][class*="items-center"][class*="justify-between"] {
  color: inherit;
}

/* Additional metric card styling for maximum visibility */
.light .p-2\.5.rounded-xl.bg-white\/5,
.light .p-2\.5.rounded-xl {
  background-color: #e5e7eb !important;
  color: #6b7280 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

/* Text emphasis colors for light mode */
.light .text-3xl.font-bold.text-white.glow-text {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

.light .text-2xl.font-bold.text-white {
  color: var(--text-main) !important;
}

.light .text-lg.font-bold.text-white {
  color: var(--text-main) !important;
}

.light .text-xl.font-bold.text-white {
  color: var(--text-main) !important;
}

/* Ensure white opacity colors are properly visible */
.light .text-white\/80,
.light .text-white\/70,
.light .text-white\/60,
.light .text-white\/50 {
  color: var(--text-main) !important;
}

/* All rounded containers should have visible borders */
.light [class*="rounded-"] {
  border-color: var(--border-main) !important;
}

/* Specific visibility for data/metric containers */
.light .grid.grid-cols-1.sm\:grid-cols-2.xl\:grid-cols-4,
.light [class*="grid"][class*="gap-"] {
  color: inherit;
}

.light .grid > div {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

/* Modal and popup backgrounds in light mode */
.light .fixed.inset-0.z-\[100\].flex {
  background-color: rgba(0, 0, 0, 0.35) !important;
}

.light .absolute.inset-0.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.35) !important;
}

/* Dropdown list backgrounds */
.light .absolute.top-full.left-0.mt-2 {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

/* Progress bar and status indicators */
.light .h-1.bg-white\/5,
.light .h-1\.5.bg-white\/5 {
  background-color: #e5e7eb !important;
}

/* Metric card and dashboard container enhancements */
.light .grid[class*="grid-cols"] > [class*="glass"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

.light .animate-fade-in[class*="p-6"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

/* Ensure icon/indicator boxes are visible */
.light [class*="p-2.5"][class*="rounded-xl"] {
  background-color: #e8eef5 !important;
  color: #6b7280 !important;
}

/* Chart/graph containers */
.light [class*="lg:col-span"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

/* Modal content boxes */
.light .glass.p-8.rounded-3xl,
.light .glass.p-10.rounded-3xl {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-main) !important;
}

.light input,
.light textarea {
  color: var(--text-main) !important;
  background-color: var(--bg-input) !important;
  border-color: var(--border-input) !important;
}

.light input::placeholder,
.light textarea::placeholder {
  color: var(--text-dim) !important;
}

/* Light mode shadow adjustments */
.light [class*="shadow"] {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

.light [class*="shadow-lg"] {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15) !important;
}

.light [class*="shadow-xl"] {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15) !important;
}

.light [class*="shadow-2xl"] {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15) !important;
}

/* Light mode modals and overlays */
.light .fixed.inset-0,
.light .fixed.z-50 {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Light mode dropdown and popup backgrounds */
.light [class*="bg-gray-900"],
.light [class*="bg-\\[#111827\\]"] {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: var(--text-main) !important;
}

/* Light mode table and list backgrounds */
.light table,
.light tbody,
.light thead {
  background-color: transparent !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.light tr {
  background-color: transparent !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.light tr:hover {
  background-color: rgba(59, 130, 246, 0.05) !important;
}

.light .divide-white\/5 {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.light .border-white\/5 {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.light .text-white {
  color: var(--text-main) !important;
}

.light .text-gray-200,
.light .text-gray-300,
.light .text-gray-400 {
  color: #475569 !important;
}

/* Light mode colored box backgrounds */
.light .bg-blue-500\/10 {
  background-color: #dbeafe !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.light .bg-blue-500\/20 {
  background-color: #bfdbfe !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.light .bg-indigo-500\/10 {
  background-color: #e0e7ff !important;
}

.light .bg-red-500\/10 {
  background-color: #ffffff98 !important;
}

.light .bg-emerald-500\/10 {
  background-color: #d1fae5 !important;
}

.light .bg-orange-500\/10 {
  background-color: #ffedd5 !important;
}

.light .bg-yellow-500\/20 {
  background-color: #fef3c7 !important;
}

.light .bg-purple-500\/10 {
  background-color: #f3e8ff !important;
}

/* Light mode border colors for colored boxes */
.light .border-blue-500\/20 {
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.light .border-blue-500\/30 {
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.light .border-indigo-500\/20 {
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.light .border-red-500\/20 {
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.light .border-emerald-500\/20 {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.light .border-orange-500\/20 {
  border-color: rgba(249, 115, 22, 0.4) !important;
}

.light .border-yellow-500\/20 {
  border-color: rgba(202, 138, 4, 0.4) !important;
}

.light .border-purple-500\/20 {
  border-color: rgba(168, 85, 247, 0.4) !important;
}

/* Light mode general border strength */
.light .border {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.light .border-b {
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

.light .border-t {
  border-top-color: rgba(15, 23, 42, 0.12) !important;
}

.light .border-l {
  border-left-color: rgba(15, 23, 42, 0.12) !important;
}

.light .border-r {
  border-right-color: rgba(15, 23, 42, 0.12) !important;
}

.light [class*="ring-"] {
  box-shadow: none !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.light .text-gray-500,
.light .text-gray-600,
.light .text-gray-700,
.light .text-gray-800 {
  color: #334155 !important;
}

.light .text-gray-100 {
  color: #0f172a !important;
}

.light .text-gray-600\/60,
.light .text-gray-600\/70 {
  color: rgba(51, 65, 85, 0.7) !important;
}

.light .text-amber-200,
.light .text-amber-200\/60,
.light .text-amber-300 {
  color: #b45309 !important;
}

.light .text-blue-200,
.light .text-blue-200\/60,
.light .text-blue-300 {
  color: #1d4ed8 !important;
}

.light .text-white\/40 {
  color: rgba(15, 23, 42, 0.65) !important;
}

/* Light mode text color overrides for all states */
.light .text-blue-400,
.light .text-blue-500 {
  color: #1d4ed8 !important;
}

.light .text-indigo-400,
.light .text-indigo-300 {
  color: #4f46e5 !important;
}

.light .text-emerald-400,
.light .text-emerald-300 {
  color: #059669 !important;
}

.light .text-red-400,
.light .text-red-300 {
  color: #dc2626 !important;
}

.light .text-orange-400 {
  color: #ea580c !important;
}

.light .text-yellow-500 {
  color: #ca8a04 !important;
}

.light .text-purple-400 {
  color: #a855f7 !important;
}

.light .text-pink-400 {
  color: #ec4899 !important;
}

.light .text-cyan-400 {
  color: #0891b2 !important;
}

.light .text-teal-400 {
  color: #14b8a6 !important;
}

/* Light mode text opacity overrides */
.light .text-white\/60,
.light .text-white\/50 {
  color: rgba(15, 23, 42, 0.7) !important;
}

.light .text-gray-900 {
  color: #111827 !important;
}

.light .text-gray-900\/80 {
  color: rgba(17, 24, 39, 0.8) !important;
}

.light .text-gray-950 {
  color: #030712 !important;
}

/* Specific brand color overrides for light mode */
.light .text-blue-400\/80,
.light .text-blue-300\/80 {
  color: rgba(29, 78, 216, 0.8) !important;
}

.light .text-blue-200 {
  color: #1d4ed8 !important;
}

/* Icon text colors for light mode */
.light [class*="text-"] svg {
  color: inherit;
}

/* Light mode specific badge/tag text */
.light .bg-blue-500\/20 {
  background-color: rgba(59, 130, 246, 0.15) !important;
}

.light .bg-blue-500\/20 .text-blue-400,
.light .bg-blue-500\/20 .text-blue-300,
.light .text-blue-400 {
  color: #1d4ed8 !important;
}

.light [class*="bg-white/5"],
.light [class*="bg-white/[0.02]"],
.light [class*="bg-white/[0.01]"] {
  background-color: #f3f4f6 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.light [class*="border-white/5"],
.light [class*="border-white/10"] {
  border-color: rgba(15, 23, 42, 0.15) !important;
}

/* Ensure all light mode boxes are outlined */
.light [class*="border"] {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

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

/* Standardized Premium Tooltip */
.tooltip-premium {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.75rem;
  width: max-content;
  padding: 0.5rem 1rem;
  background-color: var(--bg-tooltip);
  color: var(--text-tooltip);
  border: 1px solid var(--border-tooltip);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.group\/tooltip:hover .tooltip-premium {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-arrow-premium {
  position: absolute;
  top: 100%;
  right: 1.25rem;
  margin-top: -1px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--bg-tooltip);
}

.light .tooltip-premium {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Sharp-cornered containers (buttons excluded) */
.glass {
  background: rgba(255, 255, 255, 0.03);
  /* Default transparency */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-glass {
  background: rgba(11, 11, 12, 0.8) !important;
  /* Original dark color + 20% transparent */
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass,
[class*="rounded-3xl"]:not(button):not([class*="btn"]),
[class*="rounded-2xl"]:not(button):not([class*="btn"]),
[class*="rounded-xl"]:not(button):not([class*="btn"]):not(input):not(textarea) {
  border-radius: 0 !important;
}


/* Specific overrides for card-like containers */
.glass {
  border-radius: 0 !important;
}

/* Premium Phone Input Library Styles */
.premium-phone-input {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.75rem !important;
  padding: 0 1rem !important;
  transition: all 0.3s ease !important;
}

.premium-phone-input:focus-within {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.premium-phone-input .PhoneInputCountry {
  display: flex !important;
  align-items: center !important;
  margin-right: 0.5rem !important;
  cursor: pointer !important;
  position: relative !important;
}

.premium-phone-input .PhoneInputCountrySelect {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.premium-phone-input .PhoneInputInput {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0.75rem 0 !important;
  outline: none !important;
  font-size: 0.875rem !important;
}

.premium-phone-input .PhoneInputCountrySelect[disabled] {
  cursor: default !important;
}

.premium-phone-input .PhoneInputCountryIcon {
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Dropdown/Selector Button Styling */
button[class*="bg-white/5"][class*="border-white/10"] {
  border: 2px solid rgba(59, 130, 246, 0.4) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
}

button[class*="bg-white/5"][class*="border-white/10"]:hover {
  border-color: rgba(59, 130, 246, 0.7) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Light mode dropdown button */
.light button[class*="bg-white/5"][class*="border-white/10"] {
  border: 2px solid rgba(29, 78, 216, 0.3) !important;
  background: #e8f0ff !important;
  color: #1d4ed8 !important;
}

.light button[class*="bg-white/5"][class*="border-white/10"]:hover {
  border-color: rgba(29, 78, 216, 0.6) !important;
  background: #d1e0ff !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1) !important;
}

/* Premium Auth UI Refinements */
.premium-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.premium-input-wrapper:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-icon-leading {
  margin-left: 1rem;
  color: #6b7280;
  flex-shrink: 0;
}

.premium-input-field {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0.875rem 1rem !important;
  font-size: 0.95rem !important;
  outline: none !important;
}

.premium-input-field::placeholder {
  color: #4b5563 !important;
  font-weight: 500;
}

.input-icon-trailing {
  margin-right: 0.75rem;
  padding: 0.5rem;
  color: #6b7280;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.input-icon-trailing:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Redesigned Submit Button */
.auth-submit-btn {
  width: 100%;
  background: var(--blue-primary);
  /* Primary blue */
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  background: rgba(59, 130, 246, 0.3);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}



/* Generic autofill targets (WebKit-based browsers: Chrome, Edge, Brave, Safari) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill,
input:-webkit-autofill:hover,
textarea:-webkit-autofill:hover,
select:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  caret-color: var(--text-main) !important;
  border-color: var(--border-input) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

input:-webkit-autofill::first-line,
textarea:-webkit-autofill::first-line,
select:-webkit-autofill::first-line {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
}

/* Firefox autofill pseudo-class */
input:-moz-autofill,
textarea:-moz-autofill,
select:-moz-autofill {
  color: var(--text-main) !important;
  -moz-text-fill-color: var(--text-main) !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  background-clip: padding-box !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  caret-color: var(--text-main) !important;
  border-color: var(--border-input) !important;
}

/* Ensure component-specific inputs inherit the fix (higher specificity where needed) */
.premium-input-field:-webkit-autofill,
.premium-input-field:-webkit-autofill:focus,
.PhoneInputInput:-webkit-autofill,
.PhoneInputInput:-webkit-autofill:focus {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  caret-color: var(--text-main) !important;
  border-color: var(--border-input) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Light-theme overrides: keep light mode visuals intact */
.light input:-webkit-autofill,
.light textarea:-webkit-autofill,
.light select:-webkit-autofill,
.light input:-webkit-autofill:focus,
.light textarea:-webkit-autofill:focus,
.light select:-webkit-autofill:focus {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  caret-color: var(--text-main) !important;
  border-color: var(--border-input) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Light mode heading and general text visibility */
.light h1,
.light h2,
.light h3,
.light h4,
.light h5,
.light h6 {
  color: var(--text-main) !important;
}

.light p,
.light span,
.light div,
.light button,
.light label,
.light a {
  color: inherit;
}

/* Ensure all text elements with specific colors are visible */
.light [class*="text-green"] {
  color: #059669 !important;
}

.light [class*="text-rose"] {
  color: #dc2626 !important;
}

.light [class*="text-violet"] {
  color: #7c3aed !important;
}

.light [class*="text-sky"] {
  color: #0284c7 !important;
}

.light [class*="text-lime"] {
  color: #65a30d !important;
}

.light [class*="text-fuchsia"] {
  color: #c2185b !important;
}
