/* Brasholt — ét stylesheet for hele sitet. */

:root {
  --bg:        #0f1116;
  --bg-soft:   #161922;
  --card:      #1b1e28;
  --line:      #2a2f3c;
  --text:      #e8eaf0;
  --text-dim:  #9aa2b4;
  --text-mute: #6d7488;
  --accent:    #c8a45c;
  --accent-dim:#8f7440;
  --danger:    #d9534f;
  --ok:        #4f9d6a;
  --radius:    14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 50% -10%, #1c2230 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- landing/login */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
}

.wordmark {
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 300;
  letter-spacing: .34em;
  text-indent: .34em;           /* modvirker at letter-spacing skævvrider centreringen */
  color: var(--text);
  margin: 0 0 6px;
  text-align: center;
}

.wordmark-rule {
  width: 54px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 34px;
  opacity: .85;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}

.card h1 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.card .sub { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; }

/* ---------------------------------------------------------------- formular */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field .hint { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }

input[type=text], input[type=email], input[type=password], select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200,164,92,.13);
}
input::placeholder { color: #5b6274; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #1a1408;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #d6b268; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-danger { background: transparent; border-color: #5c2f2e; color: #e08b88; font-weight: 500; }
.btn-danger:hover { background: #2a1a1a; }
.btn-sm { width: auto; padding: 7px 13px; font-size: 13.5px; }

/* --------------------------------------------------------------- beskeder */

.msg {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}
.msg-error { background: rgba(217,83,79,.11);  border-color: #5c2f2e; color: #eda6a3; }
.msg-ok    { background: rgba(79,157,106,.11); border-color: #2c5340; color: #93cfa9; }
.msg-info  { background: rgba(200,164,92,.09); border-color: #4a4029; color: #d9c088; }

.links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.links a { color: var(--text-dim); }
.links a:hover { color: var(--accent); }

/* ------------------------------------------------------------ indre sider */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.topbar .brand { font-size: 15px; letter-spacing: .24em; font-weight: 600; }
.topbar nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.topbar nav a { color: var(--text-dim); }
.topbar nav a:hover, .topbar nav a.active { color: var(--accent); }

.page { max-width: 780px; margin: 0 auto; padding: 30px 20px 60px; }
.page h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.page .lead { color: var(--text-dim); margin: 0 0 26px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  font-weight: 600;
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
}
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-super { background: rgba(200,164,92,.16); color: #ddb96e; }
.badge-admin { background: rgba(90,140,210,.16); color: #8ab0e0; }
.badge-user  { background: rgba(150,158,175,.14); color: #a8b0c2; }
.badge-off   { background: rgba(217,83,79,.14);  color: #e2938f; }

.muted { color: var(--text-mute); font-size: 13px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 560px) {
  .page { padding: 22px 15px 50px; }
  .panel { padding: 18px; }
  th:nth-child(3), td:nth-child(3) { display: none; }  /* skjul 'oprettet' på mobil */
}
