/* Theme variables (scoped to this page only) */
body.app-ea_app.model-order.change-form {
  --bg: #f7f8fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ring: #3b82f6;
  --shadow: 0 6px 28px rgba(18, 38, 63, .06);
  --radius: 14px;
}

/* Layout + page background */
body.app-ea_app.model-order.change-form #content {
  background: var(--bg);
  padding: 28px !important;
  border: 0;
}
body.app-ea_app.model-order.change-form #content > h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* Object-tools (header) */
body.app-ea_app.model-order.change-form .object-tools { gap: 10px; }
body.app-ea_app.model-order.change-form .object-tools li { margin: 0; }
body.app-ea_app.model-order.change-form .object-tools .btn-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: .48rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
body.app-ea_app.model-order.change-form .object-tools .btn-action:hover { transform: translateY(-1px); }
body.app-ea_app.model-order.change-form .object-tools .btn-action .dot {
  width: .6rem; height: .6rem; border-radius: 50%; background: #9ca3af; display: inline-block;
}

/* Start/Stop order button states */
body.app-ea_app.model-order.change-form .object-tools .btn-order {
  background: #f0fdf4; color: #166534; border-color: #bbf7d0;
}
body.app-ea_app.model-order.change-form .object-tools .btn-order .dot { background: #166534; }
body.app-ea_app.model-order.change-form .object-tools .btn-order.is-on {
  background: #fef2f2; color: #b91c1c; border-color: #fecaca;
}
body.app-ea_app.model-order.change-form .object-tools .btn-order.is-on .dot { background: #b91c1c; }

/* Cards / fieldsets */
body.app-ea_app.model-order.change-form #content-main > form .module,
body.app-ea_app.model-order.change-form fieldset.module.aligned,
body.app-ea_app.model-order.change-form .inline-group {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 18px 18px 8px !important;
  box-shadow: var(--shadow);
}
body.app-ea_app.model-order.change-form fieldset.module > h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 0 12px !important;
}

body.app-ea_app.model-order.change-form fieldset.module :is(label, p) {
  color: var(--text);
}

/* Form grid */
body.app-ea_app.model-order.change-form .aligned .form-row {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr);
  align-items: center;
  gap: 12px 18px;
  padding: 8px 0 !important;
  border: 0 !important;
}
body.app-ea_app.model-order.change-form .aligned .form-row > label {
  color: var(--muted);
  font-weight: 600;
}

/* Inputs */
body.app-ea_app.model-order.change-form form .vTextField,
body.app-ea_app.model-order.change-form form .vIntegerField,
body.app-ea_app.model-order.change-form form .vLargeTextField,
body.app-ea_app.model-order.change-form form select,
body.app-ea_app.model-order.change-form form input[type="text"],
body.app-ea_app.model-order.change-form form input[type="number"],
body.app-ea_app.model-order.change-form form textarea {
  width: 100% !important;
  max-width: 100% !important;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.app-ea_app.model-order.change-form form input:focus,
body.app-ea_app.model-order.change-form form select:focus,
body.app-ea_app.model-order.change-form form textarea:focus {
  outline: none;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Help + readonly */
body.app-ea_app.model-order.change-form .help,
body.app-ea_app.model-order.change-form .help-tooltip { color: var(--muted) !important; }
body.app-ea_app.model-order.change-form .readonly { color: var(--text) !important; opacity: .9; }

/* Submit rows – hide both (we use header button instead) */
body.app-ea_app.model-order.change-form .submit-row { display: none !important; }

/* Messages */
body.app-ea_app.model-order.change-form ul.messagelist li {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ---------- Inline table: Selected Sender Bots ---------- */
body.app-ea_app.model-order.change-form .inline-group,
body.app-ea_app.model-order.change-form .module.ssb {
  background: #fff !important;
  border: 1px solid #e6e8ef !important;
  border-radius: 16px;
  padding: 14px 14px 8px !important;
  box-shadow: var(--shadow);
}
/* Title bar */
body.app-ea_app.model-order.change-form .inline-group h2,
body.app-ea_app.model-order.change-form .module.ssb > h2 {
  font-size: 13px !important;
  letter-spacing: .3px;
  text-transform: uppercase;
  background: var(--card-bg, #e9f0fb);
  color: #1e3a8a !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  margin: 0 0 10px !important;
  border: 1px solid #dbe7ff;
}
/* Scrollable + sticky head */
body.app-ea_app.model-order.change-form .inline-group table,
body.app-ea_app.model-order.change-form .module.ssb table {
  display: block;
  overflow: auto;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid #eef1f6;
}
body.app-ea_app.model-order.change-form .inline-group table thead,
body.app-ea_app.model-order.change-form .module.ssb table thead {
  position: sticky; top: 0; z-index: 2;
}
body.app-ea_app.model-order.change-form .inline-group table thead th,
body.app-ea_app.model-order.change-form .module.ssb table thead th {
  background: #f3f8ff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e6eefc !important;
  padding: 10px 12px !important;
}
body.app-ea_app.model-order.change-form .inline-group table tbody tr:nth-child(odd),
body.app-ea_app.model-order.change-form .module.ssb table tbody tr:nth-child(odd) {
  background: #fafbfc;
}
body.app-ea_app.model-order.change-form .inline-group table tbody tr:hover,
body.app-ea_app.model-order.change-form .module.ssb table tbody tr:hover {
  background: #eef6ff;
}
body.app-ea_app.model-order.change-form .inline-group table td,
body.app-ea_app.model-order.change-form .inline-group table th,
body.app-ea_app.model-order.change-form .module.ssb table td,
body.app-ea_app.model-order.change-form .module.ssb table th {
  border: 0 !important;
  padding: 10px 12px !important;
  vertical-align: middle;
  white-space: nowrap;
}
body.app-ea_app.model-order.change-form .inline-group table td { 
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; 
}
/* Hide “original” first column from TabularInline */
body.app-ea_app.model-order.change-form .inline-group .tabular th.original,
body.app-ea_app.model-order.change-form .inline-group .tabular td.original {
  display: none !important;
}
body.app-ea_app.model-order.change-form .inline-group .tabular tr.has_original > td {
  padding-left: 12px !important;
}
/* Numeric alignment */
body.app-ea_app.model-order.change-form td.field-bot_coins_fmt,
body.app-ea_app.model-order.change-form td.field-bot_loss_fmt,
body.app-ea_app.model-order.change-form td.field-min_needed_coin_fmt,
body.app-ea_app.model-order.change-form td.field-max_error_coin_fmt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.app-ea_app.model-order.change-form td.field-bot_ref,
body.app-ea_app.model-order.change-form td.field-bot_link {
  max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Pills (status chips) */
body.app-ea_app.model-order.change-form .pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid transparent;
}
body.app-ea_app.model-order.change-form .pill::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 999px; background: currentColor;
}
body.app-ea_app.model-order.change-form .pill-green  { color: #166534; background: #e8f5e9; border-color: #c8e6c9; }
body.app-ea_app.model-order.change-form .pill-red    { color: #b91c1c; background: #ffebee; border-color: #fecaca; }
body.app-ea_app.model-order.change-form .pill-amber  { color: #92400e; background: #fffbeb; border-color: #fde68a; }

/* On very small widths, allow horizontal scroll without ugly overflow */
@media (max-width: 1100px) {
  .inline-group table, .module.ssb table { max-height: 360px; }
  .aligned .form-row { grid-template-columns: 180px 1fr; }
}

/* Generic badge */
.badge.order-status{
  display:inline-flex; align-items:center; gap:.45rem;
  font-size:13px; font-weight:700; letter-spacing:.2px;
  padding:4px 10px; border-radius:999px; border:1px solid transparent;
}

/* Animated dot and button color animation */
.badge.order-status::before{
  content:""; width:.55rem; height:.55rem; border-radius:999px; display:inline-block;
  animation:pulse 1.4s ease-in-out infinite;
}

.badge.order-status {
  animation: badgeColorPulse 1.4s ease-in-out infinite;
}

@keyframes badgeColorPulse {
  0% {
    color: #166534;
    background: #e8f5e9;
    border-color: #c8e6c9;
  }
  50% {
    color: #b91c1c;
    background: #ffebee;
    border-color: #fecaca;
  }
  100% {
    color: #166534;
    background: #e8f5e9;
    border-color: #c8e6c9;
  }
}

/* States */
.badge.in-progress{
  color:#166534;
  background:#e8f5e9;
  border-color:#c8e6c9;
}
.badge.in-progress::before{ background:#16a34a; }

.badge.not-started{
  color: #f8d305;
  background:#ffebee;
  border-color:#fecaca;
}

.badge.stopped {
    color:#b91c1c;
    background:#ffebee;
    border-color:#fecaca;
}
.badge.stopped::before{ background:#b91c1c; }

.badge.not-started::before{ background:#ef4444; }

@keyframes pulse{
  0% { transform:scale(.9); opacity:.7; }
  50% { transform:scale(1.15); opacity:1; }
  100% { transform:scale(.9); opacity:.7; }
}

/* Breadcrumbs (optional subtle) */
body.app-ea_app.model-order.change-form div.breadcrumbs {
  background: transparent; color: var(--muted);
}
body.app-ea_app.model-order.change-form div.breadcrumbs a { color: #2563eb; }

/* Responsive tweaks */
@media (max-width: 1100px){
  body.app-ea_app.model-order.change-form .inline-group table { max-height: 360px; }
  body.app-ea_app.model-order.change-form .aligned .form-row { grid-template-columns: 180px 1fr; }
}

/* ----- inline table row backgrounds (override dark theme) ----- */
body.app-ea_app.model-order.change-form .inline-group table tbody tr {
  background: #ffffff;                 /* base for even rows */
}
body.app-ea_app.model-order.change-form .inline-group table tbody tr:nth-child(odd) {
  background: #fafbfc;                 /* your zebra for odd rows */
}
body.app-ea_app.model-order.change-form .inline-group table tbody tr:hover {
  background: #eef6ff;                 /* hover */
}

/* some Django themes add classes row1/row2; reset them too */
body.app-ea_app.model-order.change-form .inline-group table tbody tr.row1,
body.app-ea_app.model-order.change-form .inline-group table tbody tr.row2 {
  background: inherit !important;
}

/* ----- order changelist filter styling (only this model) ----- */
body.app-ea_app.model-order.change-list #changelist-filter {
  background: transparent;
  border: 0;
  padding-top: 6px;
}

body.app-ea_app.model-order.change-list #changelist-filter h2,
body.app-ea_app.model-order.change-list #changelist-filter .filter-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .25px;
  color: #cdd6f4;            /* keeps dark palette readable */
  opacity: .9;
  margin: 10px 0 8px;
}

body.app-ea_app.model-order.change-list #changelist-filter ul {
  margin: 0 0 12px;
  padding: 0;
}

body.app-ea_app.model-order.change-list #changelist-filter li {
  list-style: none;
  margin: 6px 0;
}

body.app-ea_app.model-order.change-list #changelist-filter li a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  color: #e5e7eb;
  background: rgba(255,255,255,.06);
}

body.app-ea_app.model-order.change-list #changelist-filter li a::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 999px; background: currentColor;
}

body.app-ea_app.model-order.change-list #changelist-filter li.selected a {
  background: rgba(16,185,129,.14);      /* greenish chip for selected */
  border-color: rgba(16,185,129,.35);
  color: #34d399;
}

.extra-order-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-inline-update {
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid #2563eb;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-inline-update:hover {
  background: #2563eb;
}

.btn-inline-update:active {
  transform: scale(0.95);
}

/* Center the admin object-tools bar on the Order change form */
body.app-ea_app.model-order.change-form ul.object-tools {
  float: none;                 /* cancel admin's right-float */
  display: flex;
  justify-content: end;     /* center horizontally */
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 12px 0 6px;
}

body.app-ea_app.model-order.change-form .order-warning {
  justify-content: center;
}

body.app-ea_app.model-order.change-form ul.object-tools li {
  float: none;                 /* remove default li float */
  margin: 0;                   /* no extra right margin */
  height: unset;
}

/* Inside item wrapper (keeps pill and button centered) */
body.app-ea_app.model-order.change-form .order-tools-wrapper{
  display:flex; align-items:center; justify-content:center; gap:12px;
}

/* Red pill warning */
body.app-ea_app.model-order.change-form .order-warning{
  background:#fee2e2; border:1px solid #fecaca; color:#b91c1c;
  font-weight:700; padding:.45rem .9rem; border-radius:9999px; font-size:.9rem;
}

/* Only on the Order change form page */
body.app-ea_app.model-order.change-form.is-stopped-order #content-main {
  position: relative;
  filter: grayscale(12%) brightness(0.98);
}

/* The dimming overlay */
body.app-ea_app.model-order.change-form.is-stopped-order #content-main::after {
  content: "";
  position: absolute;
  inset: 0;                              /* top:0; right:0; bottom:0; left:0 */
  background: rgba(17, 24, 39, 0.35);    /* gray/transparent */
  border-radius: 12px;
  z-index: 10;
  pointer-events: all;                   /* block interactions beneath */
  cursor: not-allowed;
}

/* Keep the object-tools row (where your warning pill shows) above the overlay */
body.app-ea_app.model-order.change-form ul.object-tools {
  position: relative;
  z-index: 20;
}

body.app-ea_app a.related-lookup{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; margin-left:.4rem;
  border-radius:10px; border:1px solid #cfe1ff;
  background:#eff6ff;
  /* replace the built-in icon with your own (here: a data-URI SVG) */
background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='10' fill='%2393c5fd'/><path d='M8 10l4 4 4-4' stroke='%231e40af' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
  background-repeat:no-repeat; background-position:center; background-size:18px;
  text-indent:-9999px; overflow:hidden;  /* hide the “Lookup” text */
  transition:transform .08s ease, background .2s ease, border-color .2s ease;
}
body.app-ea_app a.related-lookup:hover{
  background:#e0edff; border-color:#93c5fd;
  transform:translateY(-1px);
}


body.app-ea_app.model-order.change-form .form-row.field-customer #id_customer { display: none; }
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain {
  margin-left:.5rem; color:#1f2937; font-weight:700;
}
body.app-ea_app.model-order.change-form .form-row.field-customer a.related-lookup {
  margin-left:.4rem;
}


span.fk-label { margin-left: .5rem; color: #1f2937; font-weight: 600; }

/* static/ea_app/customer_badge.css */

/* Scope to the order change form (adjust app/model if yours differ) */
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border-radius: 9999px;
  background: #eef6ff;               /* soft blue background */
  color: #0b53b6;                     /* deep blue text */
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px #cfe3ff,          /* pill border */
    0 1px 2px rgba(0,0,0,.06);        /* tiny lift */
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  user-select: text;                  /* allow copy */
}

/* Pretty green dot */
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 9999px;
  background: #16a34a;                /* green dot */
  box-shadow: 0 0 0 2px #e9f8ef;
}

body.app-ea_app.model-order.change-form .flex-container > label {
  width: fit-content;
}

/* “Pop” when the label changes */
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain.badge-pop {
  animation: badge-pop .32s ease-out;
}

@keyframes badge-pop {
  0%   { transform: scale(.86); box-shadow: inset 0 0 0 1px #cfe3ff, 0 0 0 rgba(16,24,40,0); }
  70%  { transform: scale(1.04); box-shadow: inset 0 0 0 1px #cfe3ff, 0 6px 10px rgba(16,24,40,.10); }
  100% { transform: scale(1);    box-shadow: inset 0 0 0 1px #cfe3ff, 0 1px 2px rgba(0,0,0,.06); }
}

/* Optional: shimmer while loading new label */
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain.is-loading {
  color: transparent;
  position: relative;
  min-width: 7ch;
}
body.app-ea_app.model-order.change-form .form-row.field-customer .fk-label-plain.is-loading::after {
  content: "";
  position: absolute; inset: .35rem .65rem .35rem .65rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #e9eef7, #f6f8fc, #e9eef7);
  background-size: 200% 100%;
  animation: shimmer 1s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0;   }
  100% { background-position: 200% 0; }
}

/* Keep nice spacing with the lookup button */
body.app-ea_app.model-order.change-form .form-row.field-customer a.related-lookup {
  margin-left: .4rem;
}

/* style the readonly fk-label-plain nicely */
body div.form-row.field-customer div.flex-container>div.readonly > a {
  pointer-events: none;   /* disable clicking */
  cursor: default;        /* normal cursor */
  text-decoration: none;  /* no underline */
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 4px 8px;
  margin-left: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1e40af;           /* blue text */
  background: #f0f9ff;      /* light blue background */
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

/* Add a colored dot before the label */
body div.form-row.field-customer div.flex-container>div.readonly > a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #10b981;   /* green dot */
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(16,185,129,0.6);
}
/* Badge animation on load */
body div.form-row.field-customer div.flex-container > div.readonly > a {
  animation: fadeIn 0.3s ease, badgePop 0.25s ease;
}

/* ============ Topbar (light + dark aware) ============ */
#header { padding: 0; height: auto; }
.topbar { width: 100%; }
.topbar__container{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px clamp(14px, 2.5vw, 28px);
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* color tokens (defaults assume a colored header bg) */
:root{
  --tb-fg: #ffffff;                    /* text on header */
  --tb-fg-muted: rgba(255,255,255,.85);
  --tb-chip-bg: rgba(255,255,255,.16); /* panel chip background */
  --tb-chip-border: rgba(255,255,255,.24);
  --tb-btn-border: rgba(255,255,255,.45);
  --tb-btn-hover: rgba(255,255,255,.12);
  --tb-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Clear (remove) FK button — aligned with the lookup button */
body.app-ea_app.model-order.change-form .form-row.field-customer .clear-fk-btn{
  display: inline-flex;                /* center the X inside */
  align-items: center;
  justify-content: center;
  /* size will be set from JS to match the lookup button */
  vertical-align: middle;              /* align with the lookup button */
  margin-left: .5rem;

  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #ef4444;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, transform .08s ease;
}
body.app-ea_app.model-order.change-form .form-row.field-customer .clear-fk-btn:hover{
  background: #fee2e2;
  transform: translateY(-1px);
}
/* optional: dark mode colors */
html[data-theme="dark"] .form-row.field-customer .clear-fk-btn{
  border-color: #1f2937;
  background: #111827;
}
html[data-theme="dark"] .form-row.field-customer .clear-fk-btn:hover{
  background: #1f2937;
}

/* 1. AGGRESSIVE LIGHT MODE BASE RESET (MANDATORY TO FIX YOUR ISSUE) */
/* This forces the element to be drawn using ONLY your CSS rules. */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #ffffff !important; /* Forces the white background */
    border: 1px solid #c9c9c9 !important; /* Light border */
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

/* 2. LIGHT MODE: STYLING THE CHECKED STATE */
input[type="checkbox"]:checked {
    background-color: #3b82f6 !important; /* Blue background when checked */
    border-color: #3b82f6 !important;     /* Blue border when checked */
}

/* 3. LIGHT MODE: DRAWING THE CHECKMARK */
/* This draws the white checkmark on the blue background */
input[type="checkbox"]:checked::before {
    content: "✓" !important; /* Use a checkmark character or an SVG */
    font-size: 15px !important;
    font-weight: bold !important;
    color: #ffffff !important; /* White color for the checkmark */
    line-height: 1 !important;
}

/* 2. DARK MODE OVERRIDE (System Preference) */
@media (prefers-color-scheme: dark) {
    body input[type="checkbox"] {
        background-color: #1f2937 !important; /* DARK BACKGROUND */
        border-color: #4b5563 !important;
    }
    body input[type="checkbox"]:checked {
        background-color: #60a5fa !important; /* Lighter blue when checked */
        border-color: #60a5fa !important;
    }
    body input[type="checkbox"]:checked::before {
        color: #ffffff !important; /* White checkmark */
    }
}

/* 3. DARK MODE OVERRIDE (Manual Switch - THIS IS THE CODE YOU NEEDED) */
html[data-theme="dark"] body input[type="checkbox"] {
    background-color: #1f2937 !important; /* DARK BACKGROUND */
    border-color: #4b5563 !important;
}
html[data-theme="dark"] body input[type="checkbox"]:checked {
    background-color: #60a5fa !important; /* Lighter blue when checked */
    border-color: #60a5fa !important;
}
html[data-theme="dark"] body input[type="checkbox"]:checked::before {
    color: #ffffff !important; /* White checkmark */
}
