/* =========================================================
   DJs HRMS theme layer
   The app is dark by default. Adding .light on <html>
   switches surfaces, text and borders without changing markup.
   ========================================================= */

html { color-scheme: dark; }
html.light { color-scheme: light; }

/* Page + surfaces */
html.light .bg-\[\#0A0A0A\] { background-color: #F3F3EE; }
html.light .bg-\[\#111111\] { background-color: #FFFFFF; }
html.light .bg-\[\#141414\] { background-color: #FBFBF7; }
html.light .bg-\[\#171717\] { background-color: #FFFFFF; }
html.light .bg-\[\#0F0F0F\] { background-color: #FFFFFF; }

/* Type */
html.light .text-white { color: #161616; }
html.light .text-gray-200 { color: #1F2937; }
html.light .text-gray-300 { color: #374151; }
html.light .text-gray-400 { color: #4B5563; }
html.light .text-gray-500 { color: #5F6673; }
html.light .text-gray-600 { color: #737A85; }
html.light .placeholder-gray-600::placeholder { color: #9CA3AF; }

/* Borders and dividers */
html.light .border-white\/5 { border-color: #E6E6DE; }
html.light .border-white\/10 { border-color: #DCDCD2; }
html.light .border-yellow-500\/20 { border-color: #EBDDB4; }
html.light .divide-white\/5 > :not([hidden]) ~ :not([hidden]) { border-color: #EDEDE5; }
html.light .divide-white\/10 > :not([hidden]) ~ :not([hidden]) { border-color: #E1E1D8; }

/* Subtle fills and row hovers */
html.light .bg-white\/5 { background-color: #F1F1EA; }
html.light .bg-white\/10 { background-color: #E7E7DD; }
html.light .hover\:bg-white\/5:hover { background-color: #F6F6F0; }
html.light .hover\:bg-white\/10:hover { background-color: #EDEDE4; }

/* Gold accent needs to be darker on light surfaces */
html.light .text-yellow-300,
html.light .text-yellow-400 { color: #A16207; }
html.light .text-yellow-400\/80 { color: #A16207; }
html.light .text-yellow-200,
html.light .text-yellow-200\/90 { color: #854D0E; }
html.light .hover\:text-yellow-300:hover,
html.light .hover\:text-yellow-400:hover { color: #854D0E; }

/* The gold welcome banner keeps dark text and a black CTA */
html.light .bg-gradient-to-r .bg-black.text-yellow-400 { color: #FACC15; }

/* Status colours */
html.light .text-green-400 { color: #15803D; }
html.light .text-orange-400 { color: #C2410C; }
html.light .text-red-400 { color: #B91C1C; }
html.light .text-blue-400 { color: #1D4ED8; }
html.light .hover\:text-red-400:hover { color: #991B1B; }

/* Sidebar: the black panel becomes a light panel */
html.light aside.bg-black { background-color: #FFFFFF; }
html.light .ring-yellow-500\/30 { --tw-ring-color: #E7D9A8; }

/* Form controls */
html.light input[type="date"]::-webkit-calendar-picker-indicator,
html.light input[type="month"]::-webkit-calendar-picker-indicator,
html.light input[type="time"]::-webkit-calendar-picker-indicator { filter: none; opacity: .6; }

html.light ::selection { background: #FDE68A; color: #161616; }

/* Header profile dropdown */
[data-user-summary] { list-style: none; }
[data-user-summary]::-webkit-details-marker { display: none; }
html.light [data-user-menu] > div { box-shadow: 0 24px 48px -24px rgba(24, 24, 20, .28); }
