/* BBS Administrace - jednoduchý čistý dark/orange styl */
:root{
  --bg:#0b0d10;
  --card:#11151b;
  --card2:#0f1318;
  --text:#ffffff;
  --muted:#aab3bf;
  --accent:#ff8c00;
  --accent2:#ffb24a;
  --border:rgba(255,255,255,.10);
  --shadow:0 14px 40px rgba(0,0,0,.45);
  --ring:0 0 0 4px rgba(255,140,0,.20);
}

*{box-sizing:border-box}
html, body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255,140,0,.12), transparent 55%),
    radial-gradient(800px 460px at 92% 12%, rgba(255,178,74,.08), transparent 60%),
    radial-gradient(900px 540px at 50% 115%, rgba(255,255,255,.05), transparent 65%),
    var(--bg);
  color:var(--text);
  color-scheme: dark;
}
a{color:inherit}

.topbar{
  position:sticky; top:0;
  z-index: 1000;
  display:flex; gap:18px; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:rgba(11,13,16,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; gap:12px; align-items:center}
.brand-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.20);
  object-fit:cover;
}
.logo-dot{
  width:14px; height:14px; border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 20px rgba(255,140,0,.35);
}
.brand-name{font-weight:800; letter-spacing:.5px}
.brand-sub{font-size:12px; color:var(--muted)}

.topnav{display:flex; gap:12px; flex-wrap:wrap}
.topnav a{
  padding:8px 10px; border-radius:10px;
  border:1px solid transparent;
  color:var(--muted); text-decoration:none;
}
.topnav a:hover{
  color:var(--text);
  border-color:var(--border);
  background:rgba(255,255,255,.03);
}

.userbox{display:flex; gap:12px; align-items:center}
.user-meta{text-align:right}
.user-name{font-weight:700}
.user-role{font-size:12px; color:var(--muted)}

.container{max-width:1100px; margin:0 auto; padding:22px 18px 40px}

.container-auth{
  max-width:none;
  padding:0;
}

.card{
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(255,140,0,.08), transparent 55%),
    linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media (max-width: 620px){
  .grid{grid-template-columns:1fr;}
  .topnav{display:none}
}

.tile{
  text-decoration:none;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  transition:transform .10s ease, border-color .10s ease, background .10s ease;
  min-height:92px;
}
.tile:hover{
  transform: translateY(-1px);
  border-color:rgba(255,140,0,.35);
  background:rgba(255,255,255,.045);
}
.tile-title{font-weight:800; margin-bottom:6px}
.tile-sub{font-size:13px}

.btn{
  display:inline-block;
  border:0;
  background:var(--accent);
  color:#000;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}
.btn:hover{background:var(--accent2)}
.btn:focus{outline:none}
.btn:focus-visible{box-shadow:var(--ring)}
.btn-block{width:100%}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}
.btn-ghost:hover{
  border-color:rgba(255,140,0,.35);
  background:rgba(255,255,255,.03);
}

.form{display:flex; flex-direction:column; gap:12px; margin-top:14px}
label{font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:6px}
input{
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
  color:var(--text);
  outline:none;
}
input:focus{border-color:rgba(255,140,0,.45)}
input:focus-visible{box-shadow:var(--ring)}
input::placeholder{color:rgba(255,255,255,.35)}

/* Chrome autofill tends to force light backgrounds – override to match dark UI */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px rgba(20,20,20,.92) inset;
  border:1px solid var(--border);
  transition: background-color 9999s ease-out 0s;
}

.auth-wrap{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:44px 18px;
  min-height:100vh;
  isolation:isolate;
  overflow:hidden;
}

.auth-foot{
  position:absolute;
  left:0;
  right:0;
  bottom:16px;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,.42);
}
.auth-wrap::before{
  content:"";
  position:absolute;
  inset:-120px -80px;
  background:
    radial-gradient(520px 320px at 20% 10%, rgba(255,140,0,.14), transparent 60%),
    radial-gradient(480px 340px at 90% 30%, rgba(255,167,51,.10), transparent 60%),
    radial-gradient(520px 360px at 50% 95%, rgba(255,255,255,.06), transparent 60%);
  filter: blur(0px);
  z-index:-1;
}
.auth-card{
  max-width:480px;
  width:100%;
  padding:26px;
  border-radius:18px;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(255,140,0,.12), transparent 55%),
    linear-gradient(180deg, rgba(28,28,28,.95), rgba(20,20,20,.95));
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
}
.auth-head{margin-bottom:6px}
.layout-auth .auth-head{text-align:center}
.auth-mark{display:flex; gap:12px; align-items:flex-start}
.layout-auth .auth-mark{flex-direction:column; align-items:center}
.auth-logo{
  width:44px;
  height:44px;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  object-fit:cover;
}
.auth-brand{font-weight:900; letter-spacing:.4px; line-height:1.1}
.auth-title{margin:4px 0 0 0; font-size:24px; line-height:1.15}
.auth-lead{margin:10px 0 0 0}
h1{margin:0 0 8px 0}
h2{margin:0 0 10px 0}
.muted{color:var(--muted)}
.hint{margin-top:14px; color:var(--muted); font-size:13px}
.alert{
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  margin-top:12px;
}
.layout-auth .auth-card .alert{text-align:center}
.alert-danger{
  border-color:rgba(255,80,80,.35);
  background:rgba(255,80,80,.08);
}

.check{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  user-select:none;
  color:var(--muted);
  font-size:13px;
}
.check input{
  width:16px;
  height:16px;
  margin:0;
  accent-color: var(--accent);
}

.layout-auth .footer{display:none}

.row{display:flex; gap:10px; flex-wrap:wrap}
.mt{margin-top:14px}

/* Dashboard helpers (use existing tokens) */
.dash-head{display:flex; gap:16px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.dash-actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.dash-subgrid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px}
.dash-split{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px}
.dash-section{display:flex; gap:12px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.dash-empty{padding:10px 0}

.dash-hero{
  position:relative;
  overflow:hidden;
}
.dash-hero::before{
  content:"";
  position:absolute;
  inset:-120px -80px;
  background:
    radial-gradient(560px 260px at 15% 0%, rgba(255,140,0,.14), transparent 60%),
    radial-gradient(520px 300px at 92% 22%, rgba(255,167,51,.10), transparent 62%),
    radial-gradient(520px 340px at 50% 110%, rgba(255,255,255,.06), transparent 60%);
  z-index:0;
}
.dash-hero > *{position:relative; z-index:1}
.dash-hero h1{font-size:28px; letter-spacing:-.3px; margin:0 0 8px 0}

.kpi{min-height:92px}
.kpi-number{font-size:28px; font-weight:900; letter-spacing:-.4px; margin-top:6px}
.kpi-meta{margin-top:6px; font-size:12px; color:var(--muted)}

.tile-cta{border-color:rgba(255,140,0,.25); background:rgba(255,140,0,.06)}
.tile-cta:hover{border-color:rgba(255,140,0,.45)}

.dash-list{display:flex; flex-direction:column; gap:10px}
.dash-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
}
.dash-list-main{min-width:0}
.dash-list-title{font-weight:800; line-height:1.15}
.dash-list-sub{font-size:12px; margin-top:4px}
.dash-list-meta{font-size:12px; white-space:nowrap}

@media (max-width: 920px){
  .dash-subgrid{grid-template-columns:1fr;}
}
@media (max-width: 820px){
  .dash-split{grid-template-columns:1fr;}
}

.footer{
  border-top:1px solid var(--border);
  padding:18px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  color:var(--muted);
  background:rgba(255,255,255,.02);
}

.footer-left{display:flex; flex-direction:column; gap:4px}
.footer-brand{color:var(--text); font-weight:800; letter-spacing:.2px}
.footer-sub{font-size:12px}
.footer-right{display:flex; align-items:center; font-size:12px}

@media (max-width: 620px){
  .footer{justify-content:flex-start}
  .footer-right{width:100%}
}
code{
  background:rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:8px;
}
