/* PHP-port tilføjelser */

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  position: relative;
  z-index: 2;
  color: #e8f4ff;
  font-size: 1.35rem;
}

.header-user { font-size: 0.95rem; opacity: 0.9; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d2139, #1f6feb);
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: min(400px, 92vw);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.login-card h1 { margin-top: 0; font-size: 1.25rem; }

.form label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
}
.form-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; max-width: 720px; }
.form-actions { grid-column: 1 / -1; margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}
.btn-primary { background: #1f6feb; color: #fff; border-color: #15518b; }
.btn-block { width: 100%; margin-top: 1rem; }
.btn-small { padding: 0.2rem 0.5rem; font-size: 11px; }
.btn-liked { background: #e8f0fe; }
.btn-link { background: none; border: none; color: #15518b; cursor: pointer; text-decoration: underline; padding: 0; }
.inline-form { display: inline; }

.alert { padding: 0.65rem 0.85rem; border-radius: 4px; margin: 0.5rem 0 1rem; }
.alert-error { background: #fde8e8; border: 1px solid #f5c2c2; }
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; }

.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.data-table th, .data-table td { border: 1px solid #ddd; padding: 0.4rem 0.55rem; text-align: left; }
.data-table th { background: #f3f6fa; }
.data-table .actions { white-space: nowrap; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th { text-align: left; width: 140px; padding: 0.35rem 0.5rem 0.35rem 0; color: #555; font-weight: 600; }
.info-table td { padding: 0.35rem 0; }

.medlemvis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.medlemvis-wide { grid-column: 1 / -1; }
@media (max-width: 800px) { .medlemvis-grid, .form-grid { grid-template-columns: 1fr; } }

.medlemsarkiv-layout { display: flex; gap: 1.5rem; }
.medlemsarkiv-nav { width: 220px; flex-shrink: 0; }
.medlemsarkiv-nav-heading { font-weight: 700; margin: 1rem 0 0.35rem; font-size: 11px; text-transform: uppercase; color: #666; }
.medlemsarkiv-nav-link { display: block; padding: 0.3rem 0; }
.medlemsarkiv-nav-link--active { font-weight: 700; color: #0d2139; }
.medlemsarkiv-main { flex: 1; min-width: 0; }

.forum-head { display: flex; justify-content: space-between; align-items: center; }
.forum-kat-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.forum-pill { padding: 0.35rem 0.7rem; border: 1px solid #c5d4e3; border-radius: 999px; text-decoration: none; }
.forum-pill--active { background: #1f6feb; color: #fff; border-color: #15518b; }
.forum-pill-count { opacity: 0.75; font-size: 0.9em; }

.forum-post { border: 1px solid #ddd; margin: 1rem 0; padding: 0.75rem 1rem; border-radius: 6px; }
.forum-post-head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.forum-post-body { line-height: 1.6; }
.forum-reply { margin-top: 1.5rem; border-top: 1px solid #eee; padding-top: 1rem; }

.muted { color: #666; }
.site-footer { text-align: center; padding: 1.5rem; color: #666; font-size: 11px; }

.default-forum-sidebar { list-style: none; padding: 0; margin: 0; }
.default-forum-sidebar li { margin-bottom: 0.65rem; }

.dn-fresh-list { list-style: none; padding: 0; margin: 0; }
.dn-fresh-item { border-bottom: 1px solid #e8e8e8; padding: 0.65rem 0; }
.dn-fresh-link { display: block; text-decoration: none; color: inherit; }
.dn-fresh-kat { font-size: 10px; text-transform: uppercase; color: #15518b; font-weight: 700; }
.dn-fresh-title { display: block; font-size: 14px; margin: 0.15rem 0; }
.dn-fresh-meta { font-size: 11px; color: #666; }
.dn-fresh-excerpt { display: block; font-size: 12px; color: #333; margin-top: 0.25rem; }
.dn-fresh-item--best .dn-fresh-kat { color: #7c3aed; }
.dn-fresh-item--udvalg .dn-fresh-kat { color: #059669; }
.dn-fresh-item--ref .dn-fresh-kat { color: #b45309; }

.default-board-quick-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.default-board-quick-link { padding: 0.35rem 0.65rem; border: 1px solid #c5d4e3; border-radius: 6px; text-decoration: none; font-size: 11px; }

.table-wrap { overflow-x: auto; }
