/* dashboard-common.css  v4 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Inter font kao primarni – moderan, čitljiv */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  --bg:        #07090f;
  --surface:   #0e1117;
  --surface2:  #141824;
  --border:    #1f2a3c;
  --text:      #e8eeff;
  --muted:     #4a607a;
  --muted2:    #7a96b8;

  --green:     #00e5a0;
  --blue:      #3b82f6;
  --orange:    #f97316;
  --red:       #ef4444;
  --purple:    #8b5cf6;
  --yellow:    #f59e0b;

  --font:      'Inter', sans-serif;
  --font-head: 'Barlow Condensed', sans-serif;

  --radius:    10px;
  --screen-dur: 60s;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-left  { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 18px; }

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.header-badge {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
}

.header-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.clock {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted2);
}

/* ── Screen dots ── */
.screen-dots { display: flex; gap: 5px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.active { background: var(--green); }

/* ── Timer bar (samo na index.php) ── */
.timer-bar { height: 2px; background: var(--border); flex-shrink: 0; }
.timer-fill { height: 100%; animation: timerDrain var(--screen-dur) linear forwards; }
@keyframes timerDrain { from { width: 100%; } to { width: 0%; } }

/* ── KPI strip ── */
.kpi-strip {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.kpi-item {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-right: 1px solid var(--border);
}
.kpi-item:last-child { border-right: none; }
.kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  margin-bottom: 4px;
}
.kpi-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.kpi-sub { font-size: 0.7rem; color: var(--muted2); margin-top: 3px; font-weight: 500; }

/* ── Colour helpers ── */
.c-green  { color: var(--green)  !important; }
.c-blue   { color: var(--blue)   !important; }
.c-orange { color: var(--orange) !important; }
.c-red    { color: var(--red)    !important; }
.c-muted  { color: var(--muted2) !important; }
.c-good   { color: var(--green)  !important; }
.c-warn   { color: var(--orange) !important; }
.c-bad    { color: var(--red)    !important; }

.bg-green  { background: var(--green)  !important; }
.bg-blue   { background: var(--blue)   !important; }
.bg-orange { background: var(--orange) !important; }
.bg-red    { background: var(--red)    !important; }
.bg-good   { background: var(--green)  !important; }
.bg-warn   { background: var(--orange) !important; }
.bg-bad    { background: var(--red)    !important; }

/* ── Progress bar ── */
.prog-track {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.prog-bar { height: 100%; border-radius: 99px; transition: width 0.8s ease; }

/* ── Panel heading ── */
.panel-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 14px;
}

/* ── Scroll panel ── */
.scroll-panel { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.scroll-panel::-webkit-scrollbar { width: 3px; }
.scroll-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
