/* The laser look (Wagih 17/11: «ألوان مغايرة تماماً: أسود وأحمر/برتقالي ليزر، دلالات تكنولوجية واضحة»), laid over every
   panel page: the admin panel, the RADIUS side, the technicians' and team apps, the customers' and distributors' pages.
   It is loaded before each page's own sheet, so every rule here is one step more specific (html …). The ☀️ sun mode keeps
   its light background and takes the red accents. */
html:root{
  --bg:#05070c; --panel:#0a0f18; --fg:#eef6ff; --muted:#93a6c2; --line:#18243a; --soft:#0d1524;
  --c1:#1e90ff; --c2:#00d4ff; --c3:#eaf6ff; --grad:linear-gradient(120deg,#1e90ff,#00b7ff 55%,#eaf6ff);
  --accent:#2b9bff; --accent-fg:#ffffff; --accent-soft:#0b2747;
  --ok:#2dff9a; --ok-soft:#0b2a1d; --warn:#ffb020; --warn-soft:#2f2107; --crit:#ff2a4a; --crit-soft:#3b0c16;
  --rail:#05080e; --rail-fg:#a9bbd6; --rail-active:#0c2a50;
  /* the technicians' app (aptech.css) and the access point login page (aplogin.css) */
  --ink:#eef6ff; --dim:#93a6c2; --acc:#2b9bff; --bad:#ff2a4a; --unk:#566580; --card:#0a0f18; --main:#2b9bff;
  --laser:#1e90ff; --fire:#00d4ff; --gold:#eaf6ff;
  color-scheme:dark;
}
html[data-theme="sun"]:root{--accent:#0058d6; --c1:#0058d6; --c2:#0077c8; --c3:#003d8f; --grad:linear-gradient(120deg,#0058d6,#0077c8);
  --rail:#08142a; --rail-fg:#ffffff; --rail-active:#0058d6; color-scheme:light}
html body.radius{--c1:#1e90ff;--c2:#00b7ff;--c3:#eaf6ff;--accent:#2b9bff;--accent-soft:#0b2747;--rail:#05080e;--rail-fg:#a9bbd6;--rail-active:#0c2a50}
html[data-theme="sun"] body.radius{--accent:#0058d6;--c1:#0058d6;--c2:#0077c8;--c3:#003d8f;--rail:#08142a;--rail-fg:#fff;--rail-active:#0058d6}
html body.radius .topbar{background:#070c16}
html .rail a.radius-link{background:linear-gradient(90deg,rgba(30,144,255,.2),rgba(0,212,255,.14));border-color:rgba(43,155,255,.45)}

/* the room: black, a faint red grid, a glow from the top, one laser line travelling down the screen */
html:not([data-theme="sun"]) body{background-color:var(--bg);
  background-image:radial-gradient(1100px 520px at 85% -10%,rgba(30,144,255,.14),transparent 60%),
    radial-gradient(900px 500px at -10% 110%,rgba(0,212,255,.08),transparent 60%),
    linear-gradient(rgba(60,160,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(60,160,255,.035) 1px,transparent 1px);
  background-size:auto,auto,32px 32px,32px 32px;background-attachment:fixed}
html:not([data-theme="sun"]) body::before{content:"";position:fixed;left:0;right:0;top:0;height:2px;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(30,144,255,.0) 10%,rgba(43,155,255,.55) 50%,rgba(234,246,255,.35) 55%,transparent 90%);
  box-shadow:0 0 12px rgba(43,155,255,.45);animation:lz-scan 9s linear infinite;opacity:.6}
@keyframes lz-scan{0%{transform:translateY(-4px)}100%{transform:translateY(100vh)}}

/* the side rail: a laser bar on the page you are on */
html .rail{background:linear-gradient(180deg,#0d0709,#070406);border-inline-end:1px solid rgba(43,155,255,.14)}
html .rail a{position:relative;transition:background .2s,color .2s,transform .2s}
html .rail a:hover{background:linear-gradient(90deg,rgba(30,144,255,.14),transparent);color:#fff;transform:translateX(-2px)}
html .rail a.on{background:linear-gradient(90deg,rgba(30,144,255,.26),rgba(0,212,255,.06));color:#fff}
html .rail a.on::before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,#eaf6ff,#1e90ff);box-shadow:0 0 10px #1e90ff,0 0 20px rgba(0,212,255,.6)}
html .rail .brand .dot{background:#1e90ff;box-shadow:0 0 0 4px rgba(30,144,255,.2),0 0 12px #1e90ff;animation:lz-beat 1.8s infinite}
@keyframes lz-beat{50%{box-shadow:0 0 0 7px rgba(30,144,255,.0),0 0 18px #00d4ff}}

/* titles: hot metal */
html:not([data-theme="sun"]) main h1{background:linear-gradient(90deg,#fff 0,#ffd9c7 35%,#ff8a5a 70%,#1e90ff);-webkit-background-clip:text;
  background-clip:text;color:transparent;filter:drop-shadow(0 0 14px rgba(43,155,255,.25));letter-spacing:.2px}

/* cards: dark glass with a laser edge that lights on hover */
html:not([data-theme="sun"]) .card{background:linear-gradient(160deg,rgba(43,155,255,.05),rgba(0,212,255,.015) 45%,transparent),var(--panel);
  border:1px solid rgba(43,155,255,.16);box-shadow:0 10px 30px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.03);position:relative;
  transition:border-color .25s,box-shadow .25s,transform .25s}
html:not([data-theme="sun"]) .card::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;padding:1px;
  background:linear-gradient(110deg,transparent 30%,rgba(43,155,255,.0) 38%,#2b9bff 48%,#eaf6ff 50%,#2b9bff 52%,transparent 62%) -150% 0/250% 100% no-repeat;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .3s}
html:not([data-theme="sun"]) .card:hover{border-color:rgba(43,155,255,.38);box-shadow:0 14px 40px rgba(0,0,0,.55),0 0 26px rgba(30,144,255,.14)}
html:not([data-theme="sun"]) .card:hover::after{opacity:1;animation:lz-edge 1.6s linear infinite}
@keyframes lz-edge{to{background-position:150% 0}}
html .card.stat .v{font-variant-numeric:tabular-nums}
html:not([data-theme="sun"]) .card.stat .v{color:#fff;text-shadow:0 0 14px rgba(43,155,255,.55),0 0 2px rgba(234,246,255,.6)}

/* buttons: a red-to-fire beam with a light running across on hover */
html button:not(.ghost):not(.lfx-mute):not(.theme-toggle),html .btn:not(.ghost){background:var(--grad);color:#fff;border:0;position:relative;overflow:hidden;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 6px 18px rgba(30,144,255,.25);transition:transform .15s,box-shadow .2s,filter .2s}
html button:not(.ghost):not(.lfx-mute):not(.theme-toggle):hover,html .btn:not(.ghost):hover{transform:translateY(-1px);filter:brightness(1.08);
  box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 8px 26px rgba(43,155,255,.45),0 0 14px rgba(0,212,255,.4)}
html button:not(.ghost):not(.lfx-mute):not(.theme-toggle)::after,html .btn:not(.ghost)::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%) -160% 0/220% 100% no-repeat}
html button:not(.ghost):not(.lfx-mute):not(.theme-toggle):hover::after,html .btn:not(.ghost):hover::after{animation:lz-shine .7s ease}
@keyframes lz-shine{to{background-position:160% 0}}
html button:active,html .btn:active{transform:translateY(1px) scale(.98)}
html button.danger{background:linear-gradient(120deg,#ff1f4b,#a3001f)}
html button.ghost,html .btn.ghost{border-color:rgba(43,155,255,.45);color:#ff8a6a;background:rgba(30,144,255,.05)}
html button.ghost:hover,html .btn.ghost:hover{background:rgba(30,144,255,.12);box-shadow:0 0 14px rgba(30,144,255,.25)}
html[data-theme="sun"] button.ghost,html[data-theme="sun"] .btn.ghost{color:#0058d6}

/* fields: a laser ring when you are in one */
html input:focus,html select:focus,html textarea:focus{outline:none;border-color:#2b9bff!important;
  box-shadow:0 0 0 3px rgba(43,155,255,.22),0 0 14px rgba(43,155,255,.25)}

/* tables: the row under the pointer lights up */
html:not([data-theme="sun"]) tbody tr{transition:background .15s}
html:not([data-theme="sun"]) tbody tr:hover{background:linear-gradient(90deg,rgba(30,144,255,.10),rgba(0,212,255,.03))}
html:not([data-theme="sun"]) th{color:#ffb39a;letter-spacing:.2px}

/* bars: a laser with light running along it */
html .bar i,html .meter i{background:linear-gradient(90deg,#1e90ff,#00d4ff,#eaf6ff)!important;position:relative;
  box-shadow:0 0 10px rgba(43,155,255,.6)}
html .bar i::after,html .meter i::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent) -100% 0/40% 100% no-repeat;animation:lz-run 1.8s linear infinite}
@keyframes lz-run{to{background-position:220% 0}}

/* pills */
html .pill.ok{box-shadow:0 0 10px rgba(45,255,154,.18)}
html .pill.crit{box-shadow:0 0 10px rgba(255,42,74,.3);animation:lz-alarm 1.6s infinite}
@keyframes lz-alarm{50%{box-shadow:0 0 16px rgba(255,42,74,.6)}}
html .pill.dl{background:rgba(0,212,255,.15);color:#ff9a3d}

/* the charts' lines glow */
html:not([data-theme="sun"]) svg.chart path,html:not([data-theme="sun"]) svg.chart polyline{filter:drop-shadow(0 0 4px rgba(43,155,255,.55))}

/* the meaning signs: each menu item's and title's symbol in its own lit badge (laserfx.js wraps the leading emoji) */
.lfx-ic{display:inline-grid;place-items:center;width:1.75em;height:1.75em;margin-inline-end:.45em;border-radius:.55em;line-height:1;
  font-size:.92em;vertical-align:middle;background:radial-gradient(circle at 50% 35%,rgba(0,212,255,.28),rgba(30,144,255,.10) 60%,rgba(0,0,0,.2));
  border:1px solid rgba(43,155,255,.45);box-shadow:0 0 0 2px rgba(30,144,255,.06),0 0 12px rgba(43,155,255,.25),inset 0 0 8px rgba(0,212,255,.18);
  transition:transform .25s,box-shadow .25s}
a:hover>.lfx-ic,button:hover>.lfx-ic,.card:hover .lfx-ic{transform:scale(1.12) rotate(-4deg);
  box-shadow:0 0 0 3px rgba(30,144,255,.12),0 0 18px rgba(43,155,255,.55),inset 0 0 10px rgba(234,246,255,.3)}
a.on>.lfx-ic{border-color:#eaf6ff;box-shadow:0 0 14px rgba(0,212,255,.7)}
html[data-theme="sun"] .lfx-ic{background:#fff1ec;border-color:#0058d6;box-shadow:none}

/* the speed-dial gauges (gauges.css draws them in cyan and violet) turn laser red */
html .g-svg stop{stop-color:#1e90ff}
html .g-svg linearGradient stop:nth-child(2){stop-color:#00d4ff}
html .g-svg linearGradient stop:nth-child(3){stop-color:#eaf6ff}
html .g-svg radialGradient stop{stop-color:#1e90ff}
html .g-laser .g-bg{stroke:rgba(30,144,255,.10)}
html .g-laser .g-led.on{stroke:#1e90ff;filter:drop-shadow(0 0 3px #1e90ff)}
html .g-laser .g-led.on:nth-child(n+19){stroke:#00d4ff;filter:drop-shadow(0 0 3px #00d4ff)}
html .g-laser .g-led.on:nth-child(n+29){stroke:#eaf6ff;filter:drop-shadow(0 0 3px #eaf6ff)}
html .g-laser .g-hub{fill:#120709;stroke:#1e90ff}
html .g-laser .g-hub-in{fill:#1e90ff}
html .g-laser .g-value{fill:#eef8ff}
html .g-laser .g-spark.s1{fill:#1e90ff} html .g-laser .g-spark.s2{fill:#00d4ff} html .g-laser .g-spark.s3{fill:#eaf6ff}
html .g-val.warn{stroke:var(--warn)} html .g-val.crit{stroke:var(--crit)}
html .m-speed-dial,html .m-status .g-grid .card,html .ma-dial{background:radial-gradient(circle at 50% 45%,rgba(30,144,255,.13),transparent 62%),var(--panel)!important}

/* the customers' app (my_app.css) */
html .ma .card{background:linear-gradient(160deg,rgba(30,144,255,.06),rgba(0,212,255,.04) 60%,rgba(234,246,255,.03)),var(--panel);border-color:rgba(43,155,255,.24)}
html .ma-nums .g-n{border-color:rgba(43,155,255,.28);background:linear-gradient(145deg,rgba(30,144,255,.08),rgba(0,212,255,.05)),var(--panel)}
html .ma-nums .g-n b{text-shadow:0 0 12px rgba(43,155,255,.5)}
html .ma button:not(.ghost),html .ma .btn:not(.ghost){box-shadow:0 0 18px rgba(43,155,255,.35)}
html .ma-hero b{background:linear-gradient(90deg,#1e90ff,#eef8ff,#eaf6ff);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 0 14px rgba(43,155,255,.6))}
html .ma-test.testing{border-color:rgba(43,155,255,.7)!important;box-shadow:0 0 0 1px rgba(43,155,255,.4),0 0 28px rgba(43,155,255,.35),0 0 60px rgba(0,212,255,.25)!important}

/* the technicians' app (aptech.css): its grid and lights in red */
html:not([data-theme="sun"]) body.t-app,html body:has(.t-nav){background-image:linear-gradient(rgba(60,160,255,.05) 1px,transparent 1px),
  linear-gradient(90deg,rgba(60,160,255,.05) 1px,transparent 1px)}

/* the VoodooCall line at the foot of every page */
html .vc-sign,html footer{border-top-color:rgba(43,155,255,.2)}
@media (prefers-reduced-motion: reduce){html body::before,html .card:hover::after,html .bar i::after,html .meter i::after,html .pill.crit{animation:none}}

/* the technicians' app: its bottom bar and toasts in the laser look, the sound switch above the bar */
html .tn{background:#05080e;border-top-color:rgba(43,155,255,.3);box-shadow:0 -8px 24px rgba(0,0,0,.5),0 -1px 0 rgba(43,155,255,.25)}
html .tb{background:linear-gradient(180deg,#120709,#05080e);border-bottom-color:rgba(43,155,255,.25)}
html .toast{background:#160a0c;border-color:#2b9bff}
html body:has(.tn) .lfx-mute,html body:has(.m-tabs) .lfx-mute{bottom:84px}

/* company switch on ward-link.com/admin/login (21/11) */
html .np-co{display:flex;gap:8px;justify-content:center;margin:6px 0 16px;flex-wrap:wrap}
html .np-co a{padding:7px 16px;border-radius:999px;border:1px solid rgba(30,144,255,.45);text-decoration:none;color:var(--fg);font-weight:700;font-size:.92em;background:rgba(30,144,255,.06)}
html .np-co a:hover{border-color:#1e90ff;box-shadow:0 0 10px rgba(30,144,255,.45)}
html .np-co a.on{background:#1e90ff;border-color:#1e90ff;color:#fff;box-shadow:0 0 14px rgba(30,144,255,.6)}
