.badge.nema { background: rgba(148,163,184,.15); color: #cbd5e1; border: 1px solid rgba(148,163,184,.35); }
.badge.dobro { background: rgba(59,130,246,.15); color: #9dc0ff; border: 1px solid rgba(59,130,246,.35); }

/* Reset & base */
* { box-sizing: border-box; }
:root {
  --bg: #0b1220;
  --card: #101726;
  --muted: #aab2c5;
  --text: #e7ecf6;
  --primary: #4f8cff;
  --primary-600: #3e77e6;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #243049;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #081124 0%, #0e1530 100%);
  color: var(--text);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
.card {
  background: linear-gradient(180deg, #101726, #0f1624);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 18px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.h1 {
  font-size: 24px;
  letter-spacing: .3px;
  margin: 0;
}
.subtle { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  font-weight: 600;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn.destructive { background: var(--danger); }
.btn.link { background: transparent; padding: 0; border: none; color: var(--primary); }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.label { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: block; }
.input, .select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0c1322;
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,140,255,.2); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 12px 14px; text-align: left; }
th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  background: #0b1323;
  border-bottom: 1px solid var(--border);
}
tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
}
.badge.ok { background: rgba(16,185,129,.15); color: #4be6b6; border: 1px solid rgba(16,185,129,.4); }
.badge.lose { background: rgba(239,68,68,.15); color: #ff9b9b; border: 1px solid rgba(239,68,68,.35); }
.badge.netestirano { background: rgba(245,158,11,.15); color: #ffd18a; border: 1px solid rgba(245,158,11,.35); }
.badge.ocuvano { background: rgba(59,130,246,.15); color: #9dc0ff; border: 1px solid rgba(59,130,246,.35); }
.badge.izgrebano { background: rgba(99,102,241,.15); color: #c0c2ff; border: 1px solid rgba(99,102,241,.35); }
.badge.napuknuto { background: rgba(244,63,94,.15); color: #ffadc0; border: 1px solid rgba(244,63,94,.35); }
.badge.lose2 { background: rgba(239,68,68,.15); color: #ffb3b3; border: 1px solid rgba(239,68,68,.35); }

/* Toolbar & search */
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.search {
  display: flex; gap: 8px; align-items: center;
  background: #0c1322; border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 10px;
}
.search input { background: transparent; border: none; outline: none; color: var(--text); }

/* Footer nav */
.footer-nav { display: flex; gap: 12px; margin-top: 16px; }
hr.sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Alerts */
.alert {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #0c1322; color: var(--text);
}
