/* AL HAQQ OVERSEAS — dark teal theme base for the admin / agent / candidate / employee panels.
   Every rule uses :where() so it has zero specificity: any page's own style still wins.
   It only fills in what the browser would otherwise draw white (form fields, dropdown lists, scrollbars). */
:where(html, body) { background-color: #0a1a22; color: rgba(255, 255, 255, 0.88); }
:where(body) { font-family: 'DM Sans', 'Noto Sans Bengali', system-ui, sans-serif; }
:where(h1, h2, h3, h4, h5, h6) { color: #ffffff; }
:where(a) { color: #39D0D8; }

:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=file]), select, textarea) {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(57, 208, 216, 0.25);
}
:where(input, textarea)::placeholder { color: rgba(255, 255, 255, 0.38); }
:where(select option, select optgroup) { background-color: #0f2535; color: #ffffff; }
:where(input:focus, select:focus, textarea:focus) { border-color: #39D0D8; outline-color: #39D0D8; }
:where(input[type=checkbox], input[type=radio]) { accent-color: #39D0D8; }
:where(input[type=date], input[type=datetime-local], input[type=month], input[type=time]) { color-scheme: dark; }
:where(input[type=file]) { color: rgba(255, 255, 255, 0.75); }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #0f2535 inset;
  caret-color: #ffffff;
}
:where(table) { color: inherit; }
:where(hr) { border-color: rgba(57, 208, 216, 0.18); }
:where(code, pre) { background-color: rgba(255, 255, 255, 0.06); color: #9fe7eb; }
:where(dialog) { background-color: #0f2535; color: rgba(255, 255, 255, 0.88); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a1a22; }
::-webkit-scrollbar-thumb { background: rgba(57, 208, 216, 0.55); border-radius: 4px; }
::selection { background: rgba(57, 208, 216, 0.35); color: #ffffff; }

/* Printing (reports, receipts): always black text on white paper */
@media print {
  html, body { background: #ffffff !important; color: #000000 !important; }
  body * { color: #000000 !important; background-color: transparent !important; background-image: none !important;
           box-shadow: none !important; text-shadow: none !important; border-color: #999999 !important; }
}

/* Bootstrap 5.3 dark mode (agent and candidate panels), tuned to the site's teal palette */
[data-bs-theme=dark] {
  --bs-body-bg: #0a1a22; --bs-body-bg-rgb: 10, 26, 34;
  --bs-body-color: rgba(255, 255, 255, 0.88);
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: rgba(255, 255, 255, 0.62);
  --bs-secondary-bg: #0f2535; --bs-tertiary-bg: #0d1f2a;
  --bs-border-color: rgba(57, 208, 216, 0.2);
  --bs-primary: #1CA7B5; --bs-primary-rgb: 28, 167, 181;
  --bs-link-color: #39D0D8; --bs-link-color-rgb: 57, 208, 216;
  --bs-link-hover-color: #7fe3e8; --bs-link-hover-color-rgb: 127, 227, 232;
}
[data-bs-theme=dark] .btn-primary {
  --bs-btn-bg: #1CA7B5; --bs-btn-border-color: #1CA7B5; --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: #0E7D8B; --bs-btn-hover-border-color: #0E7D8B;
  --bs-btn-active-bg: #0E7D8B; --bs-btn-active-border-color: #0E7D8B;
}
[data-bs-theme=dark] .btn-outline-primary {
  --bs-btn-color: #39D0D8; --bs-btn-border-color: #39D0D8;
  --bs-btn-hover-bg: #1CA7B5; --bs-btn-hover-border-color: #1CA7B5; --bs-btn-hover-color: #ffffff;
}
[data-bs-theme=dark] .form-control, [data-bs-theme=dark] .form-select { background-color: rgba(255, 255, 255, 0.05); }
[data-bs-theme=dark] .form-control:focus, [data-bs-theme=dark] .form-select:focus {
  border-color: #39D0D8; box-shadow: 0 0 0 0.2rem rgba(57, 208, 216, 0.25);
}
[data-bs-theme=dark] .form-control:disabled, [data-bs-theme=dark] .form-control[readonly] { background-color: rgba(255, 255, 255, 0.02); }
[data-bs-theme=dark] .bg-white { background-color: #0f2535 !important; }
[data-bs-theme=dark] .bg-light { background-color: #0d1f2a !important; }
[data-bs-theme=dark] .text-dark, [data-bs-theme=dark] .text-black { color: rgba(255, 255, 255, 0.88) !important; }
[data-bs-theme=dark] .dropdown-menu, [data-bs-theme=dark] .modal-content, [data-bs-theme=dark] .card,
[data-bs-theme=dark] .list-group-item, [data-bs-theme=dark] .offcanvas { --bs-dropdown-bg: #0f2535; --bs-modal-bg: #0f2535; --bs-card-bg: #0f2535; --bs-list-group-bg: #0f2535; --bs-offcanvas-bg: #0f2535; }
