/* Infissi Agentic OS — temna plošča z eko-zelenim poudarkom */
:root {
  --bg: #0b0f0d;
  --bg2: #10161272;
  --panel: #131a16;
  --panel2: #1a231e;
  --line: #24302a;
  --txt: #e8efe9;
  --mut: #8fa398;
  --green: #34c759;
  --green-dk: #1b5e20;
  --amber: #ffb340;
  --red: #ff6b5e;
  --blue: #6aa8ff;
  --r: 14px;
  font-size: 15px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #14251b 0%, var(--bg) 55%);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.hidden { display: none !important; }

/* prijava */
.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 50; }
.login-card { width: min(360px, 90vw); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-card p { color: var(--mut); font-size: .92rem; }
.login-card input { background: var(--panel2); border: 1px solid var(--line); color: var(--txt); border-radius: 10px; padding: 11px 12px; font-size: 1rem; }
.login-err { color: var(--red); font-size: .85rem; min-height: 1em; }

.logo-mark { font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.logo-mark span { color: var(--green); }

/* ANDOR tema — črno-zlata, popolnoma ločen videz */
body[data-brand="andor"] {
  --green: #d4af37;
  --green-dk: #4a3a08;
  --panel: #16130c;
  --panel2: #201b10;
  --line: #2e2817;
  background: radial-gradient(1200px 600px at 80% -10%, #241d0d 0%, #0d0b07 55%);
}
body[data-brand="andor"] .btn-primary { background: var(--green); color: #1a1503; }
body[data-brand="andor"] .agent-tag { color: #ffe9a8; }
body[data-brand="andor"] .chip.active { color: #ffe9a8; }

.brand-switch { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.brand-btn { flex: 1; background: none; border: 0; color: var(--mut); padding: 7px 4px; border-radius: 9px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.brand-btn.active { background: var(--green-dk); color: #fff; }

.tasks-panel { margin-bottom: 14px; }
.tasks-panel textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--txt); border-radius: 10px; padding: 12px; font-size: .93rem; font-family: inherit; line-height: 1.5; resize: vertical; }
.btn-sm { padding: 6px 12px; font-size: .84rem; }

/* postavitev */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 230px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-btn { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; color: var(--mut); padding: 10px 12px; border-radius: 10px; font-size: .95rem; cursor: pointer; }
.nav-btn:hover { background: var(--panel); color: var(--txt); }
.nav-btn.active { background: var(--panel2); color: var(--txt); font-weight: 600; }
.badge { background: var(--amber); color: #201500; font-weight: 700; font-size: .72rem; border-radius: 20px; padding: 2px 7px; }
.sidebar-foot { display: flex; flex-direction: column; gap: 6px; }

.main { flex: 1; padding: 26px clamp(16px, 4vw, 44px) 80px; max-width: 1200px; }
h1 { font-size: 1.5rem; margin-bottom: 20px; }
.h-sub { color: var(--mut); font-weight: 400; font-size: .95rem; margin-left: 8px; }
h2 { font-size: 1.02rem; }

/* statistika */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat .num { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.stat .lbl { color: var(--mut); font-size: .84rem; margin-top: 2px; }
.stat.hot .num { color: var(--amber); }
.stat.ok .num { color: var(--green); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } .sidebar { width: 64px; padding: 22px 8px; } .sidebar .logo-mark, .sidebar-foot .btn { display:none; } .nav-btn { justify-content: center; font-size: 1.1rem; } .nav-btn .nav-txt { display: none; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.link-btn { background: none; border: 0; color: var(--green); cursor: pointer; font-size: .88rem; }

/* kartice postavk */
.item-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.agent-tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--green-dk); color: #d7ffdf; }
.type-tag { font-size: .78rem; color: var(--mut); border: 1px solid var(--line); padding: 3px 9px; border-radius: 20px; }
.item-when { color: var(--mut); font-size: .78rem; margin-left: auto; }
.item-title { font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.item-content { white-space: pre-wrap; color: #cfdcd3; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: .93rem; line-height: 1.5; max-height: 330px; overflow-y: auto; }
.item-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.status-pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-pending { background: #3a2f14; color: var(--amber); }
.status-approved { background: #14351d; color: var(--green); }
.status-rejected { background: #3a1a16; color: var(--red); }
.status-done { background: #16283a; color: var(--blue); }

/* gumbi */
.btn { border: 0; border-radius: 10px; padding: 9px 16px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--green); color: #04150a; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #4b2822; }
.btn-ghost { background: transparent; color: var(--mut); border: 1px solid var(--line); }
.btn-copy { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); }
.btn:active { transform: scale(.97); }

/* filtri */
.filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--mut); border-radius: 20px; padding: 6px 14px; cursor: pointer; font-size: .88rem; }
.chip.active { background: var(--green-dk); border-color: var(--green-dk); color: #d7ffdf; font-weight: 600; }

/* dnevnik */
.log-row { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.log-agent { flex-shrink: 0; width: 110px; font-weight: 700; color: var(--green); }
.log-agent.human { color: var(--blue); }
.log-msg { flex: 1; color: #cfdcd3; }
.log-ts { color: var(--mut); font-size: .78rem; flex-shrink: 0; }

/* agenti */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.agent-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.agent-card .icon { font-size: 1.7rem; }
.agent-card h3 { margin: 10px 0 4px; font-size: 1.02rem; }
.agent-card .role { color: var(--mut); font-size: .86rem; line-height: 1.45; }
.agent-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8rem; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.st-live { color: var(--green); } .st-live .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.st-soon { color: var(--mut); } .st-soon .dot { background: var(--mut); }

.empty { color: var(--mut); text-align: center; padding: 26px 10px; font-size: .92rem; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--green-dk); color: #d7ffdf; padding: 11px 22px; border-radius: 12px; font-weight: 600; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
