/* tematy.soltum.app — skórka wg wizualizacji Mateusza z 14.08 (ciemny sidebar + jasne karty) */
:root {
  --tlo: #f3f5f9; --karta: #ffffff; --ramka: #e7eaf0; --tekst: #16181d; --szary: #7c8494;
  --akcent: #e5484d; --akcent-tlo: #fdeaea; --nieb: #4f5bd5; --nieb-tlo: #eceefc;
  --ziel: #2f9e5f; --ziel-tlo: #e8f6ee; --zolty: #d9930d; --zolty-tlo: #fdf3df;
  --sidebar: #12161f; --sidebar-tekst: #9aa3b2; --r: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "Segoe UI", system-ui, Arial, sans-serif; font-size: 14.5px; line-height: 1.5;
       color: var(--tekst); margin: 0; background: var(--tlo); display: flex; }

/* ---------- SIDEBAR ---------- */
aside.sidebar { width: 232px; min-height: 100vh; background: var(--sidebar); color: var(--sidebar-tekst);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; flex-shrink: 0; }
.sidebar .logo { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 1.5px; text-decoration: none;
  padding: 4px 10px 18px; display: block; }
.sidebar .logo span { color: #e0a92b; font-size: 12px; vertical-align: super; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; color: var(--sidebar-tekst); text-decoration: none;
  padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.sidebar nav a .ico { width: 20px; text-align: center; opacity: .9; }
.sidebar nav a:hover { background: #1c222e; color: #fff; text-decoration: none; }
.sidebar nav a.aktywny { background: linear-gradient(90deg, #3a1520, #241019); color: #fff;
  box-shadow: inset 0 0 0 1px #58222e; }
.sidebar .szybkie { margin-top: 26px; background: #171c27; border: 1px solid #232a38; border-radius: var(--r);
  padding: 14px; }
.sidebar .szybkie b { color: #dfe4ec; font-size: 13px; display: block; margin-bottom: 10px; }
.sidebar .szybkie a { display: flex; align-items: center; gap: 9px; background: #1f2634; color: #cfd6e2;
  border: 1px solid #2b3445; border-radius: 9px; padding: 8px 10px; margin: 6px 0; text-decoration: none; font-size: 13px; }
.sidebar .szybkie a:hover { background: #273043; color: #fff; text-decoration: none; }
.sidebar .stopa { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #171c27;
  border: 1px solid #232a38; border-radius: var(--r); padding: 10px 12px; color: #dfe4ec; }
.sidebar .stopa .aw { width: 34px; height: 34px; border-radius: 50%; background: #2b3445; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.sidebar .stopa small { display: block; color: var(--sidebar-tekst); font-size: 11.5px; }
.sidebar .stopa a { color: var(--sidebar-tekst); margin-left: auto; text-decoration: none; font-size: 12px; }
.sidebar .stopa a:hover { color: #fff; }

/* ---------- MAIN ---------- */
main { flex: 1; padding: 24px 28px 40px; max-width: 1560px; min-width: 0; }
.naglowek { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.naglowek .ikonka { width: 40px; height: 40px; border-radius: 11px; background: var(--akcent-tlo);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.naglowek h1 { font-size: 21px; margin: 0; letter-spacing: -.3px; }
.naglowek .pod { color: var(--szary); font-size: 12.5px; margin-top: 1px; }
.naglowek .prawa { margin-left: auto; display: flex; gap: 10px; }

h1 { font-size: 21px; margin: 6px 0 14px; }
h2 { font-size: 15.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
a { color: var(--nieb); text-decoration: none; }
a:hover { text-decoration: underline; }
q { font-style: italic; color: #444; }
.szept, .szary { color: var(--szary); font-size: 12px; font-weight: 400; }
.czerw { color: var(--akcent); }
.flash { background: var(--akcent-tlo); border: 1px solid #f3c2c4; color: #8d2226; border-radius: 10px;
  padding: 10px 14px; margin: 0 0 14px; }

/* karty */
.karta-ui { background: var(--karta); border: 1px solid var(--ramka); border-radius: var(--r);
  padding: 18px 20px; box-shadow: 0 1px 2px rgba(20,24,33,.04); margin-bottom: 20px; }

/* kafle statystyk */
.kafle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 0 20px; }
.kafel { background: var(--karta); border: 1px solid var(--ramka); border-radius: var(--r); padding: 16px;
  display: flex; gap: 13px; align-items: center; box-shadow: 0 1px 2px rgba(20,24,33,.04); }
.kafel .ico { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 20px; background: var(--nieb-tlo); }
.kafel b { display: block; font-size: 24px; line-height: 1.15; letter-spacing: -.5px; }
.kafel span { font-size: 12px; color: var(--szary); display: block; }
.kafel.alarm { border-color: #f3c2c4; background: #fdf5f5; }
.kafel.alarm b { color: var(--akcent); }
.kafel.alarm .ico { background: var(--akcent-tlo); }
.kafel.ok .ico { background: var(--ziel-tlo); }
.kafel.zolty .ico { background: var(--zolty-tlo); }

/* tabele */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 9px 10px; font-weight: 600; color: var(--szary); font-size: 12px;
  border-bottom: 1px solid var(--ramka); background: transparent; }
td { padding: 9px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
tr.zle td { background: #fdf5f5; }
tr.ok td { background: #f4faf6; }
tr.nieb td { background: #f4f6fd; }
tr.szara td { color: #aab1bd; }
tr.pierwsza td { background: #fdf9ee; }

/* badge stanow */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.b-czerw { background: var(--akcent-tlo); color: #b3282d; }
.badge.b-zolty { background: var(--zolty-tlo); color: #9a6a06; }
.badge.b-nieb { background: var(--nieb-tlo); color: #3d47ad; }
.badge.b-ziel { background: var(--ziel-tlo); color: #1f7a47; }
.badge.b-szary { background: #eef0f4; color: #5a6270; }

/* awatar z inicjalami */
.aw-mini { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #e8ebf2; color: #4a5262;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: middle; }

/* pasek postepu */
.pasek { display: inline-block; width: 84px; height: 6px; background: #eef0f4; border-radius: 999px;
  vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pasek i { display: block; height: 100%; background: var(--akcent); border-radius: 999px; }
.pasek.z i { background: var(--ziel); }

/* alerty */
.alert-box { display: flex; gap: 10px; align-items: baseline; background: #fffaf1; border: 1px solid #f4e3bf;
  border-radius: 10px; padding: 9px 13px; margin: 7px 0; font-size: 13px; flex-wrap: wrap; }
.alert-box b { color: var(--tekst); }

/* filtry / formularze */
.filtry { display: flex; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
select, input { padding: 8px 11px; border: 1px solid #d5dae2; border-radius: 10px; background: #fff;
  font-size: 13.5px; font-family: inherit; color: var(--tekst); }
input { width: 100%; margin-top: 3px; }
.filtry select { width: auto; margin: 0; }
label { display: block; font-size: 12.5px; color: var(--szary); margin: 7px 0; }
button { margin-top: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--sidebar);
  color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
button:hover { opacity: .92; }
.ok-btn { background: var(--ziel); } .nieb-btn { background: var(--nieb); }
.szary-btn { background: #5a6270; } .czerw-btn { background: var(--akcent); }
.przycisk.maly { font-size: 12px; padding: 4px 12px; background: var(--sidebar); color: #fff; border-radius: 8px; }
.akcje form { background: var(--karta); border: 1px solid var(--ramka); border-radius: var(--r);
  padding: 13px 15px; margin: 10px 0; }
form.wiersz { display: inline; margin: 0; padding: 0; background: none; border: 0; }
form.wiersz select { width: auto; margin: 0; padding: 5px 9px; font-size: 12.5px; }
.maly-btn { margin: 0; padding: 5px 11px; font-size: 12px; }

/* uklady */
.dwie-kolumny { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.dwie-rowne { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1150px) { .dwie-kolumny, .dwie-rowne { grid-template-columns: 1fr; } .kafle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { aside.sidebar { display: none; } }

.werdykt td:first-child { width: 180px; color: var(--szary); }

/* login */
.login-strona { display: flex; width: 100%; min-height: 100vh; align-items: center; justify-content: center; }
.login-box { width: 380px; background: var(--karta); border: 1px solid var(--ramka); border-radius: 18px;
  padding: 30px 32px; text-align: center; box-shadow: 0 10px 30px rgba(18,22,31,.08); }
.login-box h1 { font-size: 32px; letter-spacing: 3px; }
.login-box .beta { color: #e0a92b; font-size: 14px; vertical-align: super; }
.login-box .pod { color: var(--szary); font-size: 12.5px; margin-bottom: 18px; }
.login-box label { text-align: left; }
.login-box button { width: 100%; background: var(--akcent); }

/* transkrypt */
.transkrypt { background: var(--karta); border: 1px solid var(--ramka); border-radius: var(--r);
  padding: 16px 18px; max-width: 980px; }
.wypowiedz { display: grid; grid-template-columns: 46px 105px 1fr; gap: 10px; padding: 5px 8px; border-radius: 8px; }
.wypowiedz .czas { color: #aab1bd; font-size: 12px; font-variant-numeric: tabular-nums; }
.wypowiedz .rola { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; }
.wypowiedz.handlowiec { background: #f4f6fd; } .wypowiedz.handlowiec .rola { color: var(--nieb); }
.wypowiedz.klient { background: #fdf9ee; } .wypowiedz.klient .rola { color: #9a6a06; }
.wypowiedz.inna .rola { color: var(--szary); }

.stopka-info { color: #aab1bd; font-size: 11.5px; margin-top: 26px; }

audio { height: 30px; max-width: 320px; margin-top: 5px; display: block; }
