/* Vse je namespacano na .ta-odstevalnik */
.ta-odstevalnik{
  --od-primary:#b13535; --od-primary-ink:#fff;
  --od-card:#fff; --od-border:#e5e7eb; --od-ink:inherit; --od-muted:#6b7280;
  --od-shadow:0 8px 24px rgba(0,0,0,.06);
  --od-radius:16px;

  /* "modri" toggle stil (kot pri štoparici/od-do) */
  --od-blue:#2563eb;
  --od-blue-soft:#eff6ff;
  --od-blue-bd:#bfdbfe;
  --od-bg-soft:#f9fafb;
}

.ta-odstevalnik .od-card{
  background:var(--od-card);
  border:1px solid var(--od-border);
  border-radius:var(--od-radius);
  box-shadow:var(--od-shadow);
  padding:18px;
  margin-block:10px;
}
.ta-odstevalnik .od-card--single{
  display:grid;
  gap:14px;
}

/* Progres */
.ta-odstevalnik .od-progress{
  height:12px;
  border-radius:999px;
  background:var(--od-bg-soft);
  border:1px solid var(--od-border);
  overflow:hidden;
}
.ta-odstevalnik .od-progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(177,53,53,.85), rgba(208,74,74,.95));
  width:0%;
  transition:width .15s linear;
}
.ta-odstevalnik .od-progress-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
  font-size:12px;
  color:var(--od-muted);
}

/* Velik prikaz */
.ta-odstevalnik .od-display{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(4, 1fr);
  align-items:stretch;
}
.ta-odstevalnik .od-tile{
  background:#101114;
  color:#f7f9ff;
  border-radius:18px;
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:140px;
  box-shadow: inset 0 -4px 0 rgba(255,255,255,.04), inset 0 12px 40px rgba(255,255,255,.03);
}
.ta-odstevalnik .od-value{
  font-weight:800;
  letter-spacing:1px;
  font-variant-numeric: tabular-nums lining-nums;
  line-height:1;
  text-align:center;
  font-size: clamp(42px, 8vw, 88px);
}
.ta-odstevalnik .od-label{
  margin-top:8px;
  font-size:14px;
  color:#b9bfd3;
  letter-spacing:.5px;
  text-transform:uppercase;
}

/* Toggles (modri, enaka velikost) */
.ta-odstevalnik .od-toggles{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.ta-odstevalnik .od-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  user-select:none;
  line-height:1;
  font-weight:700;
  color:#1e3a8a;
}
.ta-odstevalnik .od-toggle input{
  width:18px;
  height:18px;
  accent-color: var(--od-blue);
  margin:0;
}

/* Kontrole */
.ta-odstevalnik .od-controls{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(4, 1fr);
}
.ta-odstevalnik .od-control{ display:flex; flex-direction:column; gap:6px; }
.ta-odstevalnik label{ font-size:13px; color:var(--od-muted); }
.ta-odstevalnik select{
  height:48px;
  border:1px solid var(--od-border);
  border-radius:12px;
  padding:0 12px;
  font-size:16px;
  background:#fff;
  color:var(--od-ink);
}

.ta-odstevalnik .od-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ta-odstevalnik .od-btn{
  height:48px;
  border:0;
  border-radius:12px;
  padding:0 18px;
  font-weight:800;
  cursor:pointer;
  font: inherit;
}
.ta-odstevalnik .od-primary{ background:var(--od-primary); color:var(--od-primary-ink); }
.ta-odstevalnik .od-ghost{ background:#fff; color:var(--od-ink); border:1px solid var(--od-border); }
.ta-odstevalnik .od-btn:disabled{ opacity:.6; cursor:not-allowed; }

@media (max-width: 720px){
  .ta-odstevalnik .od-controls{ grid-template-columns: repeat(2, 1fr); }
  .ta-odstevalnik .od-display{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .ta-odstevalnik .od-controls{ grid-template-columns: 1fr; }
  .ta-odstevalnik .od-display{ grid-template-columns: 1fr 1fr; }
}
