:root{
  --bg:#0b0f14;
  --card:#121824;
  --text:#e8eef6;
  --muted:#9fb0c3;
  --btn: #16a34a;     /* brand zöld */
  --btn2: #f3f4f6;
	--btn2-text: #0b0f14;
	--btn2-line: rgba(0,0,0,.12);  
  --line: #e5e7eb;
  --danger:#ff4d4d;
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
}

.container{
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

h1{ font-size: 22px; margin: 10px 0 14px; }
h2{ font-size: 16px; margin: 18px 0 10px; color: var(--text); }
p{ margin: 10px 0; color: var(--muted); }

.field{ margin: 12px 0; }
.label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 14px;
  margin-bottom: 6px;
}
.hint{ font-size: 12px; color: var(--muted);margin-top: 8px; opacity: 0.75 }

input, textarea{
  width: 100%;
  background: #0f1520;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
}
textarea{ min-height: 90px; resize: vertical; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .grid2{ grid-template-columns: 1fr; }
}

.badge{
  display:inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.alert{
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid;
}

.alert-error{
  border-color: rgba(255,77,77,.4);
  background: rgba(255,77,77,.08);
  color: #ff4d4d;
}

.alert-success{
  border-color: rgba(0,180,120,.4);
  background: rgba(0,180,120,.08);
  color: #00b478;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor:pointer;
  font-size: 15px;
  text-decoration:none;
  user-select:none;
}
.btn-primary{
  background: var(--btn);
  border-color: transparent;
  color: white;
  flex: 1;
}
.btn-primary:hover{
  filter: brightness(0.92);
}
.btn-secondary{
  background: var(--btn2);
  color: var(--btn2-text);
  border-color: var(--btn2-line);
}
.btn-secondary:hover{
  filter: brightness(0.96);
}
.small{
  font-size: 13px;
  padding: 10px 12px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:12px 14px;
  margin:0 0 14px 0;

  background: rgba(18,24,36,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.topbar .who{
  display:flex;
  flex-wrap:wrap;
  gap:10px;

  font-size:13px;
  color:#9aa4b2;
  line-height:1.3;
}

.topbar .who strong{
  color:#fff;
  font-weight:600;
}

.topbar .logout form{ margin:0; }

.footer-links{
  margin-top:16px;
  font-size:12px;
  color:#777;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.footer-links a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px dotted rgba(0,0,0,.25);
}
.footer-links a:hover{
  color:#FFF;
  border-bottom-color:rgba(0,0,0,.5);
}
/* Ha telepített appként fut (PWA standalone), ne mutassuk a Telepítés gombot */
@media (min-width: 900px){
  #pwaInstallBtn{ display:none !important; }
}
@media (display-mode: standalone) {
  #pwaInstallBtn{ display:none !important; }
}

/* iOS Safari standalone eset */
@supports (-webkit-touch-callout: none) {
  #pwaInstallBtn { display: none; }
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.topbar-actions{
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  justify-content: end;
  align-items: center;
}

/* biztosíték, ha a .btn 100%-osra van húzva */
.topbar-actions .btn{
  width: auto !important;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

/* ha nagyon kicsi a kijelző, akkor is maradjon szép */
@media (max-width: 380px){
  .topbar-actions{
    grid-template-columns: 1fr 1fr;
  }
  .topbar-actions .btn{
    width: 100% !important;
  }
}

/* mobilon kicsit kisebb gombok, hogy ne legyen “tégla” */
@media (max-width: 600px){
  .topbar-actions .btn{
    padding: 10px 14px;
    border-radius: 14px;
  }
}

