/* White Light AC — themed form controls & scrollbars.
 * Shared by White Light AC Scanner, Portal, Admin and exported reports so no native Windows chrome shows through. */
:root {
  --wlc-line: rgba(190, 210, 235, 0.17);
  --wlc-bg: rgba(0, 0, 0, 0.3);
  --wlc-panel: #121823;
  --wlc-text: #f1f4f8;
  --wlc-silver: #c4cedb;
  --wlc-ice: #9adbff;
  --wlc-ice-soft: rgba(154, 219, 255, 0.12);
  --wlc-ice-glow: rgba(154, 219, 255, 0.35);
  --wlc-chevron: 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='%23c4cedb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --wlc-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4cedb' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Scrollbars ---------- */
html { scrollbar-color: rgba(190, 210, 235, 0.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(190, 210, 235, 0.14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(190, 210, 235, 0.28); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: rgba(154, 219, 255, 0.45); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* ---------- Checkboxes ---------- */
input[type='checkbox'] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--wlc-line); background: var(--wlc-bg);
  display: inline-grid; place-content: center; vertical-align: middle;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
input[type='checkbox']::after {
  content: ''; width: 9px; height: 5px; margin-top: -2px;
  border: 2.2px solid #06080c; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); transition: transform .15s cubic-bezier(.2, 1.4, .4, 1);
}
input[type='checkbox']:hover { border-color: rgba(154, 219, 255, 0.5); }
input[type='checkbox']:checked { background: var(--wlc-ice); border-color: var(--wlc-ice); box-shadow: 0 0 12px var(--wlc-ice-glow); }
input[type='checkbox']:checked::after { transform: rotate(-45deg) scale(1); }
input[type='checkbox']:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(154, 219, 255, 0.28); }
input[type='checkbox']:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Radios ---------- */
input[type='radio'] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--wlc-line); background: var(--wlc-bg);
  display: inline-grid; place-content: center; vertical-align: middle;
}
input[type='radio']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #06080c; transform: scale(0); transition: transform .15s; }
input[type='radio']:checked { background: var(--wlc-ice); border-color: var(--wlc-ice); box-shadow: 0 0 12px var(--wlc-ice-glow); }
input[type='radio']:checked::after { transform: scale(1); }

/* ---------- Dropdowns ---------- */
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  color: var(--wlc-text); background-color: var(--wlc-bg);
  background-image: var(--wlc-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  padding-right: 36px !important;
}
select option { background: var(--wlc-panel); color: var(--wlc-text); }
/* Chromium 135+ (incl. Electron 45): fully themed option list. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select::picker-icon { display: none; }
  ::picker(select) {
    margin-top: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--wlc-line);
    background: var(--wlc-panel); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
  select option { padding: 8px 12px; border-radius: 8px; color: var(--wlc-silver); font-size: 13px; transition: background .1s; }
  select option:hover, select option:focus-visible { background: var(--wlc-ice-soft); color: var(--wlc-text); outline: none; }
  select option:checked { color: var(--wlc-ice); font-weight: 600; }
  select option::checkmark { color: var(--wlc-ice); }
}

/* ---------- Number spinners & search clear ---------- */
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .55;
  background: var(--wlc-clear) center / contain no-repeat;
}
input[type='search']::-webkit-search-cancel-button:hover { opacity: 1; }

/* ---------- Text selection & autofill ---------- */
::selection { background: rgba(154, 219, 255, 0.28); color: #fff; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--wlc-text); caret-color: var(--wlc-text);
  -webkit-box-shadow: 0 0 0 1000px #0b0f15 inset; transition: background-color 9999s;
}
