:root{
  --bg:#0b1020;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);

  --primary:#5865f2;
  --success:#48bb78;
  --danger:#f56565;
  --warning:#ecc94b;

  --text:#e8eefc;
  --muted:#aab3d6;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,Segoe UI,Roboto,Arial;
  background:var(--bg); /* ÉN farve */
  color:var(--text);
}

a{color:inherit}
img{display:block}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:20px;
}

/* Header */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}

.brand-badge{
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(88,101,242,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  opacity:.95;
}
.nav a:hover{opacity:1}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.action{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.action h3{margin:0;font-size:16px}
.action p{margin:0;opacity:.85;font-size:14px;line-height:1.45}

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.16);
  color:var(--text);
  text-decoration:none;
  text-align:center;
  transition:transform .06s ease, opacity .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
}
.btn:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(0,0,0,.22);
}
.btn:active{transform:translateY(1px)}
.btn.primary{
  background:rgba(88,101,242,.22);
  border-color:rgba(88,101,242,.55);
}
.btn.primary:hover{
  background:rgba(88,101,242,.28);
  border-color:rgba(88,101,242,.70);
}

/* Lists */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.20);
  text-decoration:none;
  color:var(--text);
  transition:transform .06s ease, border-color .12s ease, background .12s ease;
}
.row:hover{
  background:rgba(0,0,0,.26);
  border-color:rgba(255,255,255,.16);
}
.row:active{transform:translateY(1px)}

.row-title{font-weight:800}
.row-sub{opacity:.75;font-size:13px;margin-top:2px}

/* Badges */
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.14);
}
.badge.pending{
  border-color:rgba(236,201,75,.55);
  color:rgba(236,201,75,.95);
}
.badge.Godkendt{
  border-color:rgba(72,187,120,.55);
  color:rgba(72,187,120,.95);
}
.badge.Afvist{
  border-color:rgba(245,101,101,.55);
  color:rgba(245,101,101,.95);
}

/* Status (success/error page) */
.status{
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
}
.status.ok{border-color:rgba(72,187,120,.45)}
.status.err{border-color:rgba(245,101,101,.45)}
.status h1{margin:0 0 8px}
.status h2{margin:0 0 8px}
.status p{margin:0 0 14px;opacity:.92;line-height:1.5}
.status-extra{
  margin:12px 0;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.status-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

/* Forms */
form{margin-top:12px}
label{
  display:block;
  margin:12px 0 6px;
  font-weight:700;
  opacity:.95;
}
input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color:rgba(88,101,242,.65);
  box-shadow:0 0 0 3px rgba(88,101,242,.12);
}
textarea{min-height:120px;resize:vertical}

/* Checkboxes */
.checks{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.check{display:flex;gap:10px;align-items:flex-start;line-height:1.35}
.check input{width:auto;margin-top:3px}
.hint{opacity:.85;margin-top:14px;font-size:14px}

/* Key/Value view (application detail) */
.kv{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
}
.kv-row{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.08);
}
.kv-row:first-child{border-top:none}
.kv-k{opacity:.8;font-weight:700}
.kv-v{white-space:pre-wrap}

@media (max-width:700px){
  .kv-row{grid-template-columns:1fr}
  .wrap{padding:16px}
}

/* Small helpers */
h1,h2,h3{letter-spacing:.2px}
