/* Silent Sweep theme for the TSCM application (login, dashboard, admin, demo) — the look of protislusni.si.
   Source: F:\Software\CATH\produkti\tscm-tema (C-AT-H web; v1 13. 10. 2026, v2 14. 10. 2026). Load AFTER style.css:
     <link rel="stylesheet" href="/static/css/ss-theme.css?v=…">  and  <body class="ss-theme …">
   and, for the motion, <script src="/static/js/ss-dyn.js?v=…" defer></script> (ss-dyn.js; without it the page is static).
   Opt-in by the body class: without it nothing changes. It re-defines the design tokens of style.css (every var(--…)
   in style.css and in the inline styles follows) plus base elements with one extra class of specificity; !important
   is not used. Semantic colours (green ok, red danger, orange warning) are kept.
   Never: hide elements (the dashboard counts badges from visible rows), transform/filter on ancestors of fixed
   modals, backdrop-filter on .navbar (on narrow screens it would contain the fixed menu drawer — style.css ~1506). */

/* Outfit is a variable font (wght 100–900, measured with fontTools): the whole range is declared, so bold text
   is real bold and not a synthetic one */
@font-face{font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/outfit-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

body.ss-theme{
  /* tokens of style.css, in the protislusni.si palette */
  --bg-primary:#03030a;
  --bg-secondary:#070818;
  --bg-card:rgba(10,13,32,.82);
  --bg-card-hover:rgba(18,24,54,.9);
  --border-color:rgba(150,190,255,.14);
  --text-primary:#f2f2fb;
  --text-secondary:rgba(214,220,238,.86);
  --text-muted:rgba(168,176,205,.78);
  --accent-blue:#4f86ff;
  --accent-purple:#8b6cff;
  --accent-cyan:#36e4ea;
  --gradient-1:linear-gradient(135deg,#1aa7c4 0%,#36e4ea 100%);
  --gradient-2:linear-gradient(135deg,#36e4ea 0%,#4f86ff 100%);
  --glow-blue:0 0 50px rgba(54,200,234,.16);
  --glow-purple:0 0 50px rgba(110,120,255,.14);
  /* own tokens */
  --ss-teal:#36e4ea;
  --ss-teal-soft:#5cf2f4;
  --ss-line:rgba(150,190,255,.14);
  --ss-hair:linear-gradient(90deg,transparent,rgba(92,242,244,.42) 30%,rgba(139,108,255,.32) 70%,transparent);
  font-family:'Outfit','Inter',system-ui,-apple-system,sans-serif;
  font-weight:300;
  letter-spacing:.005em;
  background:var(--bg-primary);
}
body.ss-theme b,body.ss-theme strong{font-weight:600}
body.ss-theme h1,body.ss-theme h2,body.ss-theme h3,body.ss-theme h4{font-weight:300;letter-spacing:.01em}

/* background: the glows of the website, STILL. v2 let them drift (transform animation on a fixed full-screen layer):
   scrolling measured 14. 10. 2026 on /demo, 1440x900, Chrome GPU: frame p95 38.6 ms with the drift, 19.6 ms without
   (17.5 ms without the theme) — a background moving every frame under the navbar, which has backdrop-filter: blur
   (style.css), keeps the compositor redrawing; the owner felt it as stutter. Measured: the drift; inferred: the blur. */
body.ss-theme .bg-gradient{background:var(--bg-primary)}
body.ss-theme .bg-gradient::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 42% 36% at 50% 4%,rgba(40,120,255,.17),transparent 62%),
             radial-gradient(ellipse 30% 30% at 90% 16%,rgba(54,228,234,.10),transparent 60%),
             radial-gradient(ellipse 36% 34% at 8% 88%,rgba(110,90,255,.10),transparent 62%)}

/* header: logo with the eyes + the wordmark of the website, glyph field behind (ss-dyn.js) */
body.ss-theme .navbar{background:linear-gradient(rgba(3,3,10,.9),rgba(3,3,10,.62));border-bottom:1px solid transparent;
  border-image:var(--ss-hair) 1;padding-top:1.1rem;padding-bottom:.8rem}
body.ss-theme .navbar::before{background:none;opacity:0}
body.ss-theme .navbar>.ss-field{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 60% 120% at 50% 50%,#000 30%,transparent 92%);mask-image:radial-gradient(ellipse 60% 120% at 50% 50%,#000 30%,transparent 92%)}
body.ss-theme .nav-brand{font-weight:400;letter-spacing:.02em;font-size:2.5rem;line-height:1.15;
  background:linear-gradient(90deg,#fff 0%,#f2fbff 42%,#8ff6f7 62%,#36e4ea 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 22px rgba(54,228,234,.22))}
body.ss-theme .nav-brand::before{content:'';display:inline-block;width:1.25em;height:1.25em;margin:0 .32em -.22em 0;border-radius:24%;
  background:url(/static/img/ss-logo.webp) center/cover no-repeat;box-shadow:0 0 22px rgba(54,180,255,.5),0 0 2px rgba(120,200,255,.85)}
/* no breathing glow: a box-shadow animation repaints every frame (measured p95 38.6 → 29.6 ms without it) */
body.ss-theme .nav-brand::after{color:var(--text-muted);-webkit-text-fill-color:var(--text-muted);font-weight:300;letter-spacing:.34em;font-size:.68rem;margin-top:.35rem}
body.ss-theme .nav-links{margin-top:.35rem}
body.ss-theme .nav-user{letter-spacing:.06em;color:var(--text-muted)}
body.ss-theme .nav-action-btn,body.ss-theme .lang-btn{background:rgba(3,3,10,.4);border:1px solid var(--ss-line);border-radius:4px;color:var(--text-secondary);
  font-family:inherit;font-weight:300;letter-spacing:.06em;transition:border-color .3s,color .3s,background .3s}
body.ss-theme .nav-action-btn:hover,body.ss-theme .lang-btn:hover{border-color:rgba(92,242,244,.6);color:#fff;background:rgba(54,228,234,.06)}

/* buttons: outlined, uppercase, letter-spaced — like the website */
body.ss-theme .btn{border-radius:4px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;font-size:.76rem;padding:.78rem 1.35rem;transition:border-color .35s,background .35s,box-shadow .35s}
body.ss-theme .btn-primary{background:linear-gradient(90deg,rgba(54,228,234,.28),rgba(26,167,196,.14));border:1px solid rgba(143,248,248,.6);color:#fff;box-shadow:none}
body.ss-theme .btn-primary:hover{background:linear-gradient(90deg,rgba(54,228,234,.4),rgba(26,167,196,.22));box-shadow:0 0 26px rgba(54,228,234,.28)}
body.ss-theme .btn-secondary{background:rgba(3,3,10,.35);border:1px solid rgba(255,255,255,.3);color:#fff}
body.ss-theme .btn-secondary:hover{border-color:var(--ss-teal);background:rgba(54,228,234,.08)}

/* cards and panels: dark navy with a lit hairline on top, as the cards of the website. One flat colour, not a gradient:
   scrolling /demo in software rendering (Chrome --disable-gpu, as over RDP), 14. 10. 2026: frame p95 13.7 ms with the
   gradient cards (opaque or not), 5.2 ms with a flat colour = the same as without the theme (5.4 ms) */
body.ss-theme .card,body.ss-theme .auth-box,body.ss-theme .modal-content{
  background:var(--ss-hair) top/100% 1px no-repeat,#080b1e;
  border:1px solid var(--ss-line);border-radius:12px;transition:border-color .5s}
body.ss-theme .card:hover{border-color:rgba(120,200,255,.26)}
body.ss-theme .auth-box{box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 60px rgba(54,200,234,.08)}
body.ss-theme .card-header{border-bottom-color:var(--ss-line)}
body.ss-theme .card h1{font-weight:200;font-size:2.1rem;letter-spacing:.01em}
body.ss-theme .card h2,body.ss-theme .card h3{font-weight:300}

/* key figures: light, large numbers like the website; ss-dyn.js lights a figure up when its value changes */
body.ss-theme .stat-mini .value{font-weight:200;font-size:2.35rem;letter-spacing:.01em;line-height:1.15}
body.ss-theme .stat-mini .label{letter-spacing:.06em}
body.ss-theme .stat-mini .value.ss-flash{animation:ss-flash 1.4s ease-out}
@keyframes ss-flash{0%{text-shadow:0 0 0 rgba(92,242,244,0)}18%{text-shadow:0 0 18px rgba(92,242,244,.85),0 0 42px rgba(54,228,234,.45)}100%{text-shadow:0 0 0 rgba(92,242,244,0)}}

/* form fields */
body.ss-theme .form-group input,body.ss-theme .settings-input,body.ss-theme .control-select{
  background:rgba(10,12,30,.5);border:1px solid var(--ss-line);border-radius:6px;font-family:inherit;font-weight:300}
body.ss-theme .form-group input:focus,body.ss-theme .settings-input:focus,body.ss-theme .control-select:focus{
  outline:0;border-color:var(--ss-teal);background:rgba(54,228,234,.06);box-shadow:0 0 0 3px rgba(54,228,234,.08)}
body.ss-theme label,body.ss-theme .settings-label,body.ss-theme .detail-label,body.ss-theme .sm-label,body.ss-theme th{
  letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;font-weight:400;color:var(--text-muted)}

/* section titles and tabs */
body.ss-theme .sm-section-title{letter-spacing:.2em;text-transform:uppercase;font-weight:400;font-size:.8rem;color:var(--text-secondary)}
body.ss-theme .filter-tab.active,body.ss-theme .sm-tab.active{color:#fff;border-color:var(--ss-teal);box-shadow:inset 0 -1px 0 var(--ss-teal)}

/* the demo notice bar in the palette of the website (dashboard.html: class instead of the inline blue-violet gradient) */
.ss-demo-bar{background:linear-gradient(90deg,#062a36,#0f5466 50%,#062a36);letter-spacing:.04em}

/* entrance: the panels fade in one after another (opacity only — a transform here would capture fixed modals) */
html.ss-dyn body.ss-theme .dashboard-grid>.card{animation:ss-in .8s ease-out both}
html.ss-dyn body.ss-theme .dashboard-grid>.card:nth-child(2){animation-delay:.08s}
html.ss-dyn body.ss-theme .dashboard-grid>.card:nth-child(3){animation-delay:.16s}
html.ss-dyn body.ss-theme .dashboard-grid>.card:nth-child(4){animation-delay:.24s}
html.ss-dyn body.ss-theme .dashboard-grid>.card:nth-child(5){animation-delay:.32s}
html.ss-dyn body.ss-theme .dashboard-grid>.card:nth-child(n+6){animation-delay:.4s}
html.ss-dyn body.ss-theme .auth-box{animation:ss-in .9s ease-out both}
@keyframes ss-in{from{opacity:0}to{opacity:1}}

/* scrollbars, keyboard focus */
body.ss-theme{scrollbar-color:rgba(54,228,234,.35) transparent}
body.ss-theme :focus-visible{outline:2px solid var(--ss-teal);outline-offset:3px}

@media (max-width:480px){
  /* style.css sets 1.1rem !important for .nav-brand here; the logo follows the font size */
  body.ss-theme .nav-brand::after{letter-spacing:.22em;font-size:.6rem}
  body.ss-theme .stat-mini .value{font-size:2rem}
}
@media (prefers-reduced-motion:reduce){
  body.ss-theme .stat-mini .value.ss-flash,
  html.ss-dyn body.ss-theme .dashboard-grid>.card,html.ss-dyn body.ss-theme .auth-box{animation:none}
}
