/**
 * File: /assets/css/status.css
 * Version: 2.02
 * Description: Svijetli ALGOR status dashboard; 3-stupčana tablica bez odziva/tipa i aktivne CMS kontrole pune širine.
 */

.status-page{
  --st-bg:#f2f5f8;
  --st-card:#fff;
  --st-ink:#101820;
  --st-muted:#667587;
  --st-line:#dce4eb;
  --st-blue:#1675c8;
  --st-blue-soft:#e8f3fc;
  --st-green:#16a663;
  --st-green-soft:#e4f7ee;
  --st-orange:#f39a22;
  --st-red:#e5091c;
  --st-shadow:0 14px 42px rgba(35,57,78,.08);
  background:var(--st-bg);
  color:var(--st-ink);
  overflow:hidden;
}
.status-page *{box-sizing:border-box}
.status-page svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.status-hero{
  position:relative;
  min-height:330px;
  overflow:hidden;
  background:linear-gradient(105deg,#f9fcff 0%,#f5f9fc 44%,#e7f0f7 100%);
  border-bottom:1px solid #dbe5ec;
}
.status-hero:after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#f9fcff 0%,#f9fcfff7 35%,#f9fcff8c 52%,#f9fcff0d 72%);
}
.status-hero-image{
  position:absolute;z-index:0;right:0;top:0;width:64%;height:100%;object-fit:cover;object-position:66% 50%;
}
.status-hero-inner{position:relative;z-index:2;min-height:330px;display:flex;align-items:center;padding-block:45px}
.status-hero-copy{max-width:690px}
.status-eyebrow{display:flex;align-items:center;gap:13px;margin-bottom:15px;color:var(--red);font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.status-eyebrow:before{content:"";width:26px;height:3px;background:var(--red);flex:none}
.status-eyebrow-small{font-size:.64rem;margin-bottom:8px}
.status-hero h1{font-size:clamp(2.45rem,4.1vw,4.25rem);line-height:1.01;letter-spacing:-.052em;font-weight:800;color:#101820}
.status-hero-description{margin-top:18px;max-width:670px;color:#536579;font-size:1rem;line-height:1.65}
.status-live-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px;color:#42566a;font-size:.83rem}
.status-live-line strong{color:#192b3a}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;background:var(--st-green);box-shadow:0 0 0 5px rgba(22,166,99,.11)}
.status-separator{color:#9aabba}.status-stale{margin-top:10px;color:#b46d00;font-size:.78rem}
.status-tone-down .status-dot{background:var(--st-red);box-shadow:0 0 0 5px rgba(229,9,28,.1)}
.status-tone-warn .status-dot,.status-tone-paused .status-dot{background:var(--st-orange);box-shadow:0 0 0 5px rgba(243,154,34,.12)}
.status-tone-unknown .status-dot{background:#8796a4;box-shadow:0 0 0 5px rgba(135,150,164,.12)}

.status-summary{padding:18px 0 0;background:var(--st-bg)}
.status-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.status-kpi{min-height:112px;padding:20px 22px;display:flex;align-items:center;gap:18px;background:var(--st-card);border:1px solid var(--st-line);border-radius:13px;box-shadow:var(--st-shadow)}
.status-kpi-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;background:var(--st-green-soft);color:var(--st-green);flex:0 0 auto}
.status-kpi-icon svg{width:32px;height:32px}.status-kpi-icon-blue{background:var(--st-blue-soft);color:var(--st-blue)}
.status-kpi-icon-bars{background:#e8f7ef;color:var(--st-green)}
.status-kpi small,.status-kpi strong,.status-kpi span{display:block}
.status-kpi small{font-size:.73rem;color:#6a7d90;margin-bottom:4px}
.status-kpi strong{font-size:1.13rem;line-height:1.2;color:#152333}
.status-kpi-state strong{color:var(--st-green)}
.status-tone-down .status-kpi-state strong{color:var(--st-red)}
.status-tone-warn .status-kpi-state strong,.status-tone-paused .status-kpi-state strong{color:#b46d00}
.status-kpi span{margin-top:5px;color:#778696;font-size:.72rem;line-height:1.35}

.status-main-section{padding:18px 0 36px}
.status-main-grid{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(320px,.82fr);gap:18px;align-items:start}
.status-services-card,.status-side-card{background:#fff;border:1px solid var(--st-line);border-radius:14px;box-shadow:var(--st-shadow);overflow:hidden}
.status-services-card{padding:0 0 0}
.status-panel-head{min-height:74px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:1px solid #e6ecf1}
.status-panel-head h2{font-size:1.35rem;letter-spacing:-.03em;color:#132131}
.status-panel-head-compact{min-height:58px;padding:15px 17px}.status-panel-head-compact h2{font-size:1.05rem}
.status-total{display:flex;align-items:center;gap:10px;font-size:.76rem;color:#587085;white-space:nowrap}.status-total .status-dot{width:8px;height:8px;box-shadow:none}

.status-table{width:100%}
.status-tr{display:grid;grid-template-columns:minmax(240px,1.25fr) 130px minmax(360px,1.85fr);align-items:center;min-height:58px;border-bottom:1px solid #edf1f4;padding:0 18px;column-gap:16px}
.status-tr:last-child{border-bottom:0}.status-th{min-height:42px;background:#f7f9fb;color:#718399;font-size:.64rem;text-transform:uppercase;font-weight:800;letter-spacing:.045em}
.status-service-name{display:flex;align-items:center;gap:12px;min-width:0}.status-service-name strong{font-size:.82rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-service-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#edf5fb;color:var(--st-blue);flex:0 0 auto}.status-service-icon svg{width:17px;height:17px}
.status-state{display:inline-flex;align-items:center;gap:8px;font-size:.75rem;font-weight:700}.status-state i{width:8px;height:8px;border-radius:50%;background:#8796a4}
.status-state-up{color:var(--st-green)}.status-state-up i{background:var(--st-green)}
.status-state-down{color:var(--st-red)}.status-state-down i{background:var(--st-red)}
.status-state-warn{color:#b46d00}.status-state-warn i{background:var(--st-orange)}
.status-state-paused,.status-state-unknown{color:#748391}.status-state-paused i,.status-state-unknown i{background:#8796a4}
.status-uptime-cell{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:13px}.status-uptime-cell strong{font-size:.75rem}
.status-progress{height:10px;border-radius:999px;background:#edf1f4;overflow:hidden;position:relative}.status-progress i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#20b76f,#13a15f);border-radius:inherit}
.status-source-note{display:flex;align-items:flex-start;gap:12px;padding:15px 18px;border-top:1px solid #e7edf2;background:#fafcfd;color:#6c7e90;font-size:.7rem;line-height:1.5}.status-info-dot{width:24px;height:24px;display:grid;place-items:center;background:#e6f3fc;color:var(--st-blue);border-radius:50%;font-weight:800;flex:none}

.status-side-column{display:flex;flex-direction:column;gap:16px}
.status-ok-block,.status-maintenance-empty{display:flex;gap:14px;align-items:center;padding:17px}
.status-ok-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--st-green-soft);color:var(--st-green);flex:none}.status-ok-icon svg{width:27px;height:27px}
.status-ok-block strong,.status-maintenance-empty strong{font-size:.83rem;color:var(--st-green);display:block}.status-ok-block p,.status-maintenance-empty p{margin-top:4px;color:#748596;font-size:.71rem;line-height:1.42}
.status-incident-list{padding:4px 16px 10px}.status-incident{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #edf1f4}.status-incident:last-child{border-bottom:0}.status-incident-dot{width:9px;height:9px;border-radius:50%;background:var(--st-orange)}.status-incident.is-active .status-incident-dot{background:var(--st-red)}
.status-incident strong{display:block;font-size:.76rem;line-height:1.3}.status-incident small{display:block;margin-top:3px;color:#788999;font-size:.65rem}.status-pill{font-size:.6rem;font-weight:800;color:#168754;background:#e0f6ea;border-radius:999px;padding:5px 8px}.status-incident.is-active .status-pill{color:#b5091a;background:#fde6e9}
.status-maintenance-list{padding:7px 16px 13px}.status-maintenance-item{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f4}.status-maintenance-item:last-child{border-bottom:0}.status-maintenance-item>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--st-blue-soft);color:var(--st-blue);flex:none}.status-maintenance-item>span svg{width:19px;height:19px}.status-maintenance-item strong{font-size:.76rem;display:block}.status-maintenance-item small{font-size:.65rem;color:#788999;margin-top:3px;display:block}
.status-maintenance-empty>span{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:var(--st-blue-soft);color:var(--st-blue);flex:none}.status-maintenance-empty>span svg{width:24px;height:24px}.status-maintenance-empty strong{color:#203247}
.status-empty{padding:18px;color:#778898;font-size:.76rem}.status-empty-main{display:flex;align-items:center;gap:15px;padding:28px 20px}.status-empty-main strong{display:block;color:#25384b;font-size:.9rem}.status-empty-main p{margin-top:4px}.status-empty-icon{width:44px;height:44px;display:grid;place-items:center;background:#fff3df;color:#b46d00;border-radius:50%;flex:none}.status-empty-icon svg{width:24px;height:24px}

.status-cta{padding:0 0 38px}.status-cta-inner{display:grid;grid-template-columns:1fr auto;gap:45px;align-items:center;background:#fff;border:1px solid var(--st-line);border-left:4px solid var(--red);border-radius:12px;padding:28px 32px;box-shadow:var(--st-shadow)}
.status-cta h2{font-size:clamp(1.45rem,2.2vw,2.15rem);letter-spacing:-.04em}.status-cta p:not(.status-eyebrow){margin-top:9px;color:#68798a;font-size:.84rem;line-height:1.55}.status-cta-button{background:#171b1e;color:#fff;border-color:#171b1e;white-space:nowrap}.status-cta-button:hover{background:var(--red);border-color:var(--red)}

@media(max-width:1180px){
  .status-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .status-main-grid{grid-template-columns:1fr}
  .status-side-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .status-tr{grid-template-columns:minmax(230px,1.1fr) 120px minmax(320px,1.55fr)}
}
@media(max-width:900px){
  .status-hero{min-height:360px}.status-hero-inner{min-height:360px}.status-hero-image{width:80%;opacity:.55}.status-hero:after{background:linear-gradient(90deg,#f9fcff 0%,#f9fcfff5 48%,#f9fcff99 68%,#f9fcff33)}
  .status-side-column{grid-template-columns:1fr}
  .status-table{overflow-x:auto}.status-tr{min-width:720px}
  .status-cta-inner{grid-template-columns:1fr}.status-cta-button{justify-self:start}
}
@media(max-width:620px){
  .status-hero{min-height:385px}.status-hero-inner{min-height:385px;padding-block:38px}.status-hero-image{width:100%;opacity:.28}.status-hero:after{background:linear-gradient(90deg,#f9fcfff8,#f9fcffd9)}
  .status-hero h1{font-size:2.65rem}.status-live-line{font-size:.73rem}.status-separator{display:none}
  .status-summary{padding-top:12px}.status-summary-grid{grid-template-columns:1fr;gap:10px}.status-kpi{min-height:94px;padding:16px 17px}.status-kpi-icon{width:50px;height:50px}.status-kpi-icon svg{width:27px;height:27px}
  .status-main-section{padding-top:12px}.status-panel-head{align-items:flex-start;flex-direction:column}.status-total{align-self:flex-start}.status-services-card,.status-side-card{border-radius:10px}
  .status-cta-inner{padding:24px 20px;gap:24px}.status-cta-button{width:100%}
}


/* 2.02 — CMS Layout bloka sada stvarno upravlja širinom STATUS sekcija. */
.status-page .container.cms-width-full{
  width:100%!important;
  max-width:none!important;
}
.status-page .status-main-grid.cms-width-full,
.status-page .status-summary-grid.cms-width-full,
.status-page .status-hero-inner.cms-width-full,
.status-page .status-cta-inner.cms-width-full{
  padding-left:max(var(--cms-gutter,24px),24px);
  padding-right:max(var(--cms-gutter,24px),24px);
}
