/* 2026-12-02: Light-theme contrast fixes for Digitmax Finance.
   The light theme only remapped some dark-theme colours; pale text (emerald-300, amber-300, blue-300 ...)
   and dark see-through tiles (bg-slate-800/30 ...) stayed as they were and were hard to read on white.
   Dark theme is unchanged. */

/* Pale accent text -> darker shades that pass WCAG AA on white */
html[data-theme=light] .text-emerald-100,
html[data-theme=light] .text-emerald-200,
html[data-theme=light] .text-emerald-300,
html[data-theme=light] .hover\:text-emerald-300:hover,
html[data-theme=light] .hover\:text-emerald-400:hover { color: #047857 !important; }
html[data-theme=light] .text-emerald-500,
html[data-theme=light] .text-emerald-400 { color: #047857 !important; }
html[data-theme=light] .text-green-500 { color: #15803d !important; }

html[data-theme=light] .text-amber-200,
html[data-theme=light] .text-amber-300,
html[data-theme=light] .text-amber-400,
html[data-theme=light] .text-amber-500,
html[data-theme=light] .text-yellow-400 { color: #b45309 !important; }

html[data-theme=light] .text-blue-200\/80,
html[data-theme=light] .text-blue-300,
html[data-theme=light] .text-sky-300,
html[data-theme=light] .hover\:text-blue-300:hover,
html[data-theme=light] .hover\:text-blue-400:hover,
html[data-theme=light] .hover\:text-blue-500:hover { color: #1d4ed8 !important; }

html[data-theme=light] .text-cyan-200\/70,
html[data-theme=light] .text-cyan-300 { color: #0e7490 !important; }

html[data-theme=light] .text-rose-200,
html[data-theme=light] .text-rose-300,
html[data-theme=light] .text-red-400,
html[data-theme=light] .hover\:text-rose-400:hover { color: #be123c !important; }
html[data-theme=light] .text-red-500 { color: #dc2626 !important; }

html[data-theme=light] .text-purple-400,
html[data-theme=light] .text-purple-500 { color: #6d28d9 !important; }

html[data-theme=light] .text-slate-500 { color: #5b6b80 !important; }
html[data-theme=light] .text-white\/80 { color: #334155 !important; }
html[data-theme=light] .hover\:text-slate-300:hover { color: #0f172a !important; }

/* Dark see-through tiles (e.g. Today's Buying Rates) -> light tiles */
html[data-theme=light] .bg-slate-800\/30,
html[data-theme=light] .bg-slate-700\/30,
html[data-theme=light] .bg-slate-900\/30,
html[data-theme=light] .bg-slate-950\/20,
html[data-theme=light] .bg-slate-950\/50,
html[data-theme=light] .bg-slate-950\/60 { background-color: #f4f7fb !important; }
html[data-theme=light] .bg-slate-500\/10 { background-color: #eef2f7 !important; }
html[data-theme=light] .border-slate-700\/30,
html[data-theme=light] .border-slate-700\/40,
html[data-theme=light] .border-slate-800\/50,
html[data-theme=light] .border-slate-600,
html[data-theme=light] .border-slate-950 { border-color: #d7e2ef !important; }
html[data-theme=light] .hover\:bg-slate-800\/30:hover,
html[data-theme=light] .hover\:bg-slate-800\/50:hover,
html[data-theme=light] .hover\:bg-slate-700\/20:hover,
html[data-theme=light] .hover\:bg-slate-600\/50:hover,
html[data-theme=light] .hover\:bg-slate-900\/80:hover { background-color: #eaf1f8 !important; }

/* Tinted chips and buttons: a clear tint and a visible border */
html[data-theme=light] .bg-emerald-500\/10 { background-color: #ecfdf5 !important; }
html[data-theme=light] .bg-emerald-500\/20,
html[data-theme=light] .hover\:bg-emerald-500\/20:hover,
html[data-theme=light] .hover\:bg-emerald-500\/10:hover { background-color: #d1fae5 !important; }
html[data-theme=light] .border-emerald-500\/20,
html[data-theme=light] .border-emerald-500\/30,
html[data-theme=light] .border-emerald-500\/40,
html[data-theme=light] .border-emerald-500\/50 { border-color: #6ee7b7 !important; }
html[data-theme=light] .bg-amber-500\/20,
html[data-theme=light] .bg-amber-500\/30,
html[data-theme=light] .bg-amber-400\/10,
html[data-theme=light] .hover\:bg-amber-500\/10:hover,
html[data-theme=light] .hover\:bg-amber-500\/20:hover { background-color: #fef3c7 !important; }
html[data-theme=light] .border-amber-500\/20,
html[data-theme=light] .border-amber-500\/30,
html[data-theme=light] .border-amber-500\/50,
html[data-theme=light] .border-amber-400\/40 { border-color: #fcd34d !important; }
html[data-theme=light] .bg-blue-500\/10,
html[data-theme=light] .bg-blue-500\/20,
html[data-theme=light] .bg-blue-600\/20,
html[data-theme=light] .bg-blue-900\/20,
html[data-theme=light] .hover\:bg-blue-500\/20:hover,
html[data-theme=light] .hover\:bg-blue-600\/30:hover { background-color: #dbeafe !important; }
html[data-theme=light] .border-blue-500\/20,
html[data-theme=light] .border-blue-500\/40,
html[data-theme=light] .border-blue-800\/30 { border-color: #93c5fd !important; }
html[data-theme=light] .bg-rose-500\/5,
html[data-theme=light] .bg-rose-500\/20,
html[data-theme=light] .hover\:bg-rose-500\/10:hover,
html[data-theme=light] .hover\:bg-rose-500\/20:hover { background-color: #ffe4e6 !important; }
html[data-theme=light] .border-rose-500\/20,
html[data-theme=light] .border-rose-500\/30,
html[data-theme=light] .border-rose-500\/40,
html[data-theme=light] .border-rose-500\/50,
html[data-theme=light] .border-red-500\/50 { border-color: #fda4af !important; }
html[data-theme=light] .bg-purple-500\/10 { background-color: #ede9fe !important; }
html[data-theme=light] .bg-yellow-500\/10 { background-color: #fef9c3 !important; }
html[data-theme=light] .bg-cyan-500\/5,
html[data-theme=light] .hover\:bg-cyan-500\/10:hover { background-color: #ecfeff !important; }

/* The light theme turns every .text-white dark; keep white text on solid coloured buttons and badges */
html[data-theme=light] .bg-emerald-500.text-white,
html[data-theme=light] .bg-emerald-600.text-white,
html[data-theme=light] .bg-emerald-800.text-white,
html[data-theme=light] .bg-blue-600.text-white,
html[data-theme=light] .bg-blue-800.text-white,
html[data-theme=light] .bg-indigo-600.text-white,
html[data-theme=light] .bg-rose-500.text-white,
html[data-theme=light] .bg-rose-600.text-white,
html[data-theme=light] .bg-rose-600\/90.text-white,
html[data-theme=light] .bg-red-500.text-white,
html[data-theme=light] .bg-amber-600.text-white,
html[data-theme=light] .bg-slate-500.text-white { color: #ffffff !important; }