/* Brand tokens that the Tailwind Play CDN used to generate */
.bg-primary { background-color: #0f172a; }
.from-primary { --tw-gradient-from: #0f172a; --tw-gradient-to: rgb(15 23 42 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/50 { --tw-gradient-from: rgb(15 23 42 / 0.5); --tw-gradient-to: rgb(15 23 42 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/0 { --tw-gradient-from: rgb(15 23 42 / 0); --tw-gradient-to: rgb(15 23 42 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-primary { --tw-gradient-to: #0f172a; }
.to-primary\/0 { --tw-gradient-to: rgb(15 23 42 / 0); }
.to-primary\/50 { --tw-gradient-to: rgb(15 23 42 / 0.5); }
.via-primary\/0 { --tw-gradient-to: rgb(15 23 42 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(15 23 42 / 0), var(--tw-gradient-to); }
.text-primary { color: #0f172a; }
.border-primary { border-color: #0f172a; }

.bg-secondary { background-color: #1e293b; }
.from-secondary { --tw-gradient-from: #1e293b; --tw-gradient-to: rgb(30 41 59 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-secondary\/20 { --tw-gradient-from: rgb(30 41 59 / 0.2); --tw-gradient-to: rgb(30 41 59 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-secondary { --tw-gradient-to: #1e293b; }
.text-secondary { color: #1e293b; }

.bg-accent { background-color: #326ce5; }
.text-accent { color: #326ce5; }
.border-accent { border-color: #326ce5; }
.border-t-accent { border-top-color: #326ce5; }
.hover\:text-accent:hover { color: #326ce5; }
.hover\:bg-accent:hover { background-color: #326ce5; }
.hover\:border-accent:hover { border-color: #326ce5; }
.hover\:bg-accent\/5:hover { background-color: rgb(50 108 229 / 0.05); }
.hover\:bg-accent\/10:hover { background-color: rgb(50 108 229 / 0.1); }
.hover\:bg-accent\/15:hover { background-color: rgb(50 108 229 / 0.15); }
.hover\:bg-accent\/25:hover { background-color: rgb(50 108 229 / 0.25); }
.bg-accent\/5 { background-color: rgb(50 108 229 / 0.05); }
.bg-accent\/10 { background-color: rgb(50 108 229 / 0.1); }
.bg-accent\/15 { background-color: rgb(50 108 229 / 0.15); }
.bg-accent\/20 { background-color: rgb(50 108 229 / 0.2); }
.border-accent\/40 { border-color: rgb(50 108 229 / 0.4); }
.from-accent { --tw-gradient-from: #326ce5; --tw-gradient-to: rgb(50 108 229 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-accent\/5 { --tw-gradient-from: rgb(50 108 229 / 0.05); --tw-gradient-to: rgb(50 108 229 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.shadow-accent\/20 { --tw-shadow-color: rgb(50 108 229 / 0.2); --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); box-shadow: var(--tw-shadow); }
.focus\:border-accent:focus { border-color: #326ce5; }

.bg-tertiary { background-color: #8b5cf6; }
.text-tertiary { color: #8b5cf6; }
.to-tertiary { --tw-gradient-to: #8b5cf6; }
.from-tertiary { --tw-gradient-from: #8b5cf6; --tw-gradient-to: rgb(139 92 246 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

@keyframes ko-spin { to { transform: rotate(360deg); } }
.animate-spin, .ko-spin { animation: ko-spin 0.8s linear infinite; }

.accent { --tw-accent-opacity: 1; accent-color: #326ce5; }
.sw-spin{display:inline-block;width:12px;height:12px;border:2px solid #38bdf8;border-top-color:transparent;border-radius:50%;vertical-align:-2px}

/* Software tab app logos (24px, dark theme tile) */
.sw-name{display:inline-flex;align-items:center;gap:.5rem}
.sw-icon{width:24px;height:24px;flex:0 0 24px;object-fit:contain;padding:2px;border-radius:6px;background:rgba(255,255,255,.06);box-sizing:content-box}

/* Snapshots & opruiming (PV-tab) */
.ko-c-blue{background:rgba(59,130,246,.15);color:#93c5fd}.ko-c-amber{background:rgba(245,158,11,.15);color:#fcd34d}
.ko-c-red{background:rgba(244,63,94,.15);color:#fda4af}.ko-t-blue{color:#93c5fd}.ko-t-red{color:#fda4af}
.ko-ul{list-style:disc;margin-left:1.25rem;color:rgba(253,230,138,.8)}.ko-w-cron{width:7rem}.ko-w-num{width:3.5rem}

/* Module on/off switch: same look as www.globestar.nl Automatisering (choice.css .ch-auto / .ch-auto-sw). */
.ko-switch { display: inline-flex; align-items: center; padding: .55rem .9rem; border-radius: 1rem;
  background: rgba(2, 6, 23, .55); border: 1px solid rgba(148, 163, 184, .2); color: #e2e8f0; }
.ko-switch-sw { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; font-weight: 600;
  background: none; border: 0; color: inherit; font: inherit; padding: 0; }
.ko-switch-knob { position: relative; flex: none; width: 2.6rem; height: 1.45rem; border-radius: 999px;
  background: rgba(148, 163, 184, .4); transition: background .2s; }
.ko-switch-knob::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.05rem; height: 1.05rem;
  border-radius: 50%; background: #fff; transition: transform .2s; }
.ko-switch-sw.is-on .ko-switch-knob, .ko-switch-sw[aria-checked="true"] .ko-switch-knob { background: #22c55e; }
.ko-switch-sw.is-on .ko-switch-knob::after, .ko-switch-sw[aria-checked="true"] .ko-switch-knob::after { transform: translateX(1.15rem); }
.ko-switch-sw:focus-visible .ko-switch-knob { box-shadow: 0 0 0 3px rgba(59, 130, 246, .6); }
.ko-switch-sw:disabled { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .ko-switch-knob, .ko-switch-knob::after { transition: none; } }
