/* =========================================================
   BASIS / VARIABLER
   ========================================================= */
* { box-sizing: border-box; }

:root {
  --bg:#0f172a;
  --card:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --brand:#22d3ee;
}

/* =========================================================
   BODY & CONTAINER
   ========================================================= */
body {
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================================================
   LAYOUT-KORT / CARDS
   ========================================================= */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* bruges til sider med fixed topbar (admin) */
.page-wrapper {
  padding-top: 90px;
}

/* =========================================================
   TOPBAR / NAV
   ========================================================= */
.topbar {
  position: fixed;
  top:0;
  left:0;
  right:0;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(148,163,184,.12);
  z-index: 50;
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 16px;
}

/* din oprindelige nav-stil */
.nav {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}

.nav a {
  padding:8px 12px;
  background:#0b1220;
  border-radius:10px;
}

/* =========================================================
   AGENDA-KORT (det du havde i forvejen)
   ========================================================= */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }
.agenda-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); border-left: 6px solid #ccc; }
.agenda-header{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.agenda-title{ font-size: 20px; font-weight: 700; color: #00c2ff; letter-spacing: .2px; }
.agenda-body { margin: 6px 0 10px 0; line-height: 1.4; color: #444; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; color: #666; padding-top: 4px; border-top: 1px solid #eee; margin-bottom: 8px; }
.agenda-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agenda-form .small { width: 140px; }

/* =========================================================
   BADGES / STATUS
   ========================================================= */
.badge {
  background:#0b1220;
  padding:4px 8px;
  border-radius:9999px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
}

.status-åben { background-color: #60a5fa; }
.status-planlagt { background-color: #fbbf24; }
.status-drøftet { background-color: #34d399; }
.status-lukket { background-color: #9ca3af; }

.status-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px 0;
}

.status-form .input.small.compact {
  width: 150px;
  padding: 8px 10px;
  background: #0b1220;
  border-radius: 12px;
}

.status-form .btn.btn-small {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
}

/* på meget små skærme: læg dem under hinanden */
@media (max-width: 480px) {
  .status-form {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .status-form .input.small.compact {
    width: 100%;
  }
}

/* =========================================================
   KNAPPER
   ========================================================= */
button.btn,
a.btn,
button.btn-small,
a.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  height: 38px;
  line-height: 1;
}

button.btn-inactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  height: 38px;
  line-height: 1;
}

.btn-inactive:hover { background: #FF7E00; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

button,
.btn {
  background: var(--brand);
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  color:#00111a;
  font-weight:600;
}

/* =========================================================
   FORMER / INPUTS
   ========================================================= */
.input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border:1px solid #1f2937;
  background:#0b1220;
  color: var(--text);
}

label {
  display:block;
  margin: 12px 0 6px;
  color: var(--muted);
}

/* --- Praktiklog form-styles --- */
.form { display: grid; gap: 12px; }

.form-grid { display: grid; gap: 12px; }

.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.form-field { display: block; }

.form-label {
  display: block;
  font-size: 0.9rem;
  color: #9CA3AF;
  margin: 4px 0 6px;
}

.form-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #0f1b2d;
  color: #E5E7EB;
  border: 1px solid #1f2a44;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-input::placeholder { color: #6B7280; }
.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
  background: #0d1728;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.card .section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #E5E7EB;
  letter-spacing: .2px;
}

.helper { font-size: .85rem; color: #9CA3AF; opacity: .9; }

/* =========================================================
   TABELLER
   ========================================================= */
.table {
  width:100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom:1px solid #1f2937;
  padding:10px;
  text-align:left;
}

/* gør tabeller scrollbare på mobil */
.table-wrapper {
  width:100%;
  overflow-x:auto;
}

/* =========================================================
   DROPDOWN MENU
   ========================================================= */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
  background: #0b1220;
  border: none;
  color: #7dd3fc;
  font: inherit;
  cursor: pointer;
  padding: 8px 12px;
}
.dropbtn:hover { background: #1e293b; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0b1220;
  min-width: 240px;
  box-shadow: 0px 8px 8px rgba(0,0,0,0.4);
  z-index: 1;
  border-radius: 8px;
}
.dropdown-content a {
  color: #7dd3fc;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover { background-color: #1e293b; }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================================
   LINKS
   ========================================================= */
a { color: #7dd3fc; text-decoration: none; }

/* =========================================================
   Bruges til at vise studerende i hver sin boks
   ========================================================= */
.year-card {
    margin-top: 16px;
}

.year-card h2 {
    margin-bottom: 8px;
}

/* =========================================================
   Navn hentet fra institutions tabellen
   ========================================================= */
.institution-badge {
  font-size: 0.85rem;
  color: #9ca3af;        /* lys grå */
  margin-top: 4px;
}

/* ============================================
   STUDENT MOBILMENU – Fuld kontrol
   ============================================ */

/* Som udgangspunkt er menuen gemt */
.student-mobile-menu {
    display: none;
}

/* Knap-stil for mobilmenuen */
.student-mobile-menu .menu-btn {
    display: block;
    width: 100%;                     /* fuld bredde */
    background: #0b1220;             /* samme stil som dine andre knapper */
    color: #7dd3fc;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Primær knap (Ny log) */
.student-mobile-menu .menu-btn-primary {
    background: var(--brand);
    color: #00111a;
}

/* Lidt afstand mellem knapperne */
.student-mobile-menu .menu-btn + .menu-btn {
    margin-top: 10px;
}

/* MOBIL – her aktiverer vi menuen og skjuler den gamle */
@media (max-width: 640px) {

    /* skjul ALDRIG den gamle menuliste */
    .nav {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* vis mobilmenuen som en kolonne */
    .student-mobile-menu {
        display: flex;
        flex-direction: column;
        margin-top: 16px;
    }
}

/* DESKTOP – skjul mobilmenuen */
@media (min-width: 641px) {
    .student-mobile-menu {
        display: none;
    }
}

