/* ============================================
   RÖKRÁSIR 4 – Kennsluvefur
   RÖKV3FS03 – Iðntölvustýringar
   VMA – Verkmenntaskólinn á Akureyri
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #0f1923;
  --bg-card: #182632;
  --bg-card-hover: #1e3040;
  --bg-sidebar: #0c141c;
  --accent: #22b8a0;
  --accent-light: #34d4b8;
  --accent-glow: rgba(34, 184, 160, 0.15);
  --accent-glow-strong: rgba(34, 184, 160, 0.3);
  --text-primary: #e8edf2;
  --text-secondary: #8fa3b8;
  --text-muted: #5a7289;
  --border: #243545;
  --border-light: #2d4555;
  --warning: #f0a030;
  --danger: #e05555;
  --success: #22b8a0;
  --whiteboard: #5b8af0;
  --whiteboard-glow: rgba(91, 138, 240, 0.15);
  --sidebar-width: 280px;
  --header-height: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fa;
  --bg-sidebar: #ffffff;
  --accent: #0f9680;
  --accent-light: #0b7a68;
  --accent-glow: rgba(15, 150, 128, 0.08);
  --accent-glow-strong: rgba(15, 150, 128, 0.15);
  --text-primary: #1a2332;
  --text-secondary: #4a5e73;
  --text-muted: #8494a7;
  --border: #dfe3e8;
  --border-light: #c8cfd8;
  --warning: #d4890a;
  --danger: #c43e3e;
  --success: #0f9680;
  --whiteboard: #4070d8;
  --whiteboard-glow: rgba(64, 112, 216, 0.08);
}

[data-theme="light"] .sidebar {
  box-shadow: 2px 0 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .wb-card .wb-label { color: #3060b8; }
[data-theme="light"] .nav-link .week-num { background: rgba(0,0,0,0.04); }
[data-theme="light"] .nav-link.active .week-num { background: rgba(15, 150, 128, 0.12); }
[data-theme="light"] .progress-track { background: rgba(0,0,0,0.06); }
[data-theme="light"] .meta-chip { background: rgba(0,0,0,0.03); }
[data-theme="light"] .grade-table th { background: rgba(0,0,0,0.03); }
[data-theme="light"] .pdf-placeholder { color: var(--text-muted); }
[data-theme="light"] .pdf-placeholder .upload-hint { background: rgba(0,0,0,0.02); border-color: var(--border); }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  margin: 12px 20px 0;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,0.04); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.08); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SIDEBAR NAV ── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.sidebar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), #1a8a78);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-brand-text h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sidebar-brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Current week indicator */
.current-week-badge {
  margin: 16px 20px 8px;
  padding: 10px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 184, 160, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--accent-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-week-badge .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 184, 160, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 184, 160, 0); }
}

/* Nav list */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 16px 8px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 400;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent-light);
  font-weight: 500;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-link .week-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  min-width: 28px;
  text-align: center;
  padding: 2px 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-link.active .week-num {
  background: rgba(34, 184, 160, 0.2);
}

.nav-link .nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link .badge-verkefni {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(34, 184, 160, 0.15);
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.nav-link.is-break {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: 32px 40px 60px;
  max-width: 960px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 32px;
}

.page-header .breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { color: var(--accent); }

.page-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── PROGRESS BAR ── */
.progress-section {
  margin-bottom: 32px;
}

.progress-bar-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.progress-info .label { color: var(--text-secondary); }
.progress-info .value { color: var(--accent-light); font-weight: 600; font-family: 'JetBrains Mono', monospace; }

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25));
  border-radius: 0 4px 4px 0;
}

/* ── WHITEBOARD LINKS ── */
.whiteboard-section {
  margin-bottom: 28px;
}

.whiteboard-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wb-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--whiteboard-glow);
  border: 1px solid rgba(91, 138, 240, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.wb-card:hover {
  background: rgba(91, 138, 240, 0.2);
  border-color: rgba(91, 138, 240, 0.4);
  transform: translateY(-1px);
}

.wb-card .wb-icon {
  width: 38px; height: 38px;
  background: rgba(91, 138, 240, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wb-card .wb-text .wb-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #7da5f5;
}

.wb-card .wb-text .wb-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── WHITEBOARD CHECK ── */
.wb-check {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  font-size: 13.5px;
}

.wb-check:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.wb-check .wb-check-icon { font-size: 18px; flex-shrink: 0; }
.wb-check .wb-check-text { color: var(--text-secondary); font-weight: 500; }
.wb-check .wb-check-label {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.wb-check.wb-done {
  border-color: rgba(34, 184, 160, 0.35);
  border-style: solid;
  background: rgba(34, 184, 160, 0.06);
}
.wb-check.wb-done .wb-check-text {
  color: var(--accent-light);
  font-weight: 600;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 4px;
  border-bottom: none;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.tab-btn.active {
  background: var(--accent-glow);
  color: var(--accent-light);
}

.tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
  display: none;
}

.tab-content.active { display: block; }

/* ── CONTENT STYLING ── */
.goal-list {
  list-style: none;
  padding: 0;
}

.goal-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.goal-list li:last-child { border-bottom: none; }

.goal-list li .goal-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
}

.verkefni-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.meta-chip strong { color: var(--text-primary); font-weight: 600; }

.pdf-embed-container {
  width: 100%;
  min-height: 500px;
  background: #111;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-embed-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.pdf-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.pdf-placeholder .icon { font-size: 48px; margin-bottom: 12px; }
.pdf-placeholder p { font-size: 14px; margin-bottom: 16px; }

.pdf-placeholder .upload-hint {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.04);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  display: inline-block;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.resource-list li:last-child { border-bottom: none; }

.resource-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.resource-list a:hover { color: var(--accent-light); text-decoration: underline; }

.resource-list .res-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── INDEX PAGE: WEEK GRID ── */
.week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.week-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.week-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateX(4px);
}

.week-card.is-current {
  border-color: rgba(34, 184, 160, 0.4);
  background: var(--accent-glow);
}

.week-card.is-break {
  opacity: 0.45;
  pointer-events: none;
}

.week-card .wc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
  padding: 6px 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  flex-shrink: 0;
}

.week-card.is-current .wc-num {
  background: rgba(34, 184, 160, 0.2);
  color: var(--accent-light);
}

.week-card .wc-info { flex: 1; min-width: 0; }

.week-card .wc-title {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 2px;
}

.week-card .wc-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-card .wc-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.week-card .wc-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.wc-badge.verkefni { background: rgba(34, 184, 160, 0.15); color: var(--accent); }
.wc-badge.whiteboard { background: var(--whiteboard-glow); color: #7da5f5; }
.wc-badge.weight { background: rgba(255,255,255,0.06); color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* ── NÁMSMAT TABLE ── */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.grade-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.grade-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.grade-table tr:last-child td { border-bottom: none; }

.grade-table .weight-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--accent);
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-toggle { display: flex; }
  .main-content { margin-left: 0; padding: 70px 20px 40px; }
  .whiteboard-cards { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .page-header h2 { font-size: 22px; }
  .tab-content { padding: 16px; }
}
/* ═══════════════════════════════════════════
   BÆTA VIÐ í style.css
   Sidebar track, liðnar vikur, whiteboard
   ═══════════════════════════════════════════ */
 
/* ── Sidebar progress track ── */
.sidebar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 16px 10px 16px;
  overflow: hidden;
}
.sidebar-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 2px;
  transition: width 0.4s;
}
 
/* ── Liðnar vikur — ljósgræn ── */
.nav-link.is-past .week-num {
  color: #34d399;
  opacity: 0.8;
}
 
/* ── WHITEBOARD COMBINED CARD ── */
.wb-combined {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: var(--whiteboard-glow, rgba(91, 138, 240, 0.04));
  border: 1px solid rgba(91, 138, 240, 0.2);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.wb-combined:hover {
  border-color: rgba(91, 138, 240, 0.35);
}
.wb-combined .wb-link-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background 0.15s;
}
.wb-combined .wb-link-area:hover {
  background: rgba(91, 138, 240, 0.1);
}
.wb-combined .wb-icon {
  width: 38px; height: 38px;
  background: rgba(91, 138, 240, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wb-combined .wb-text .wb-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #7da5f5;
}
.wb-combined .wb-text .wb-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
/* Done button inside card */
.wb-done-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 18px;
  margin: 8px 10px 8px 0;
  background: rgba(255,255,255,0.04);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  min-width: 64px;
}
.wb-done-btn:hover {
  border-color: var(--border-light, var(--border));
  background: rgba(255,255,255,0.08);
}
.wb-done-btn .wb-done-icon {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all 0.15s;
}
.wb-done-btn .wb-done-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
/* Done state */
.wb-combined.wb-done {
  border-color: rgba(34, 184, 160, 0.35);
  background: rgba(34, 184, 160, 0.06);
}
.wb-combined.wb-done .wb-done-btn {
  border-color: rgba(34, 184, 160, 0.4);
  border-style: solid;
  background: rgba(34, 184, 160, 0.1);
}
.wb-combined.wb-done .wb-done-btn .wb-done-icon {
  background: var(--accent, #22b8a0);
  border-color: var(--accent, #22b8a0);
  color: #fff;
}
.wb-combined.wb-done .wb-done-btn .wb-done-label {
  color: var(--accent, #22b8a0);
  font-weight: 600;
}
 /* ═══════════════════════════════════════════
   BÆTA VIÐ í style.css
   Sidebar track, liðnar vikur, whiteboard
   ═══════════════════════════════════════════ */

/* ── Sidebar progress track ── */
.sidebar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 16px 10px 16px;
  overflow: hidden;
}
.sidebar-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 2px;
  transition: width 0.4s;
}

/* ── Liðnar vikur — ljósgræn ── */
.nav-link.is-past .week-num {
  color: #34d399;
  opacity: 0.8;
}

/* ── WHITEBOARD COMBINED CARD ── */
.wb-combined {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: var(--whiteboard-glow, rgba(91, 138, 240, 0.04));
  border: 1px solid rgba(91, 138, 240, 0.2);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.wb-combined:hover {
  border-color: rgba(91, 138, 240, 0.35);
}
.wb-combined .wb-link-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background 0.15s;
}
.wb-combined .wb-link-area:hover {
  background: rgba(91, 138, 240, 0.1);
}
.wb-combined .wb-icon {
  width: 38px; height: 38px;
  background: rgba(91, 138, 240, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wb-combined .wb-text .wb-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #7da5f5;
}
.wb-combined .wb-text .wb-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
/* Done button inside card */
.wb-done-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 18px;
  margin: 8px 10px 8px 0;
  background: rgba(255,255,255,0.04);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  min-width: 64px;
}
.wb-done-btn:hover {
  border-color: var(--border-light, var(--border));
  background: rgba(255,255,255,0.08);
}
.wb-done-btn .wb-done-icon {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all 0.15s;
}
.wb-done-btn .wb-done-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
/* Done state */
.wb-combined.wb-done {
  border-color: rgba(34, 184, 160, 0.35);
  background: rgba(34, 184, 160, 0.06);
}
.wb-combined.wb-done .wb-done-btn {
  border-color: rgba(34, 184, 160, 0.4);
  border-style: solid;
  background: rgba(34, 184, 160, 0.1);
}
.wb-combined.wb-done .wb-done-btn .wb-done-icon {
  background: var(--accent, #22b8a0);
  border-color: var(--accent, #22b8a0);
  color: #fff;
}
.wb-combined.wb-done .wb-done-btn .wb-done-label {
  color: var(--accent, #22b8a0);
  font-weight: 600;
}

/* ── BJARGIR CARD ── */
.bjargir-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s;
  margin-bottom: 8px;
}
.bjargir-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateX(2px);
}
.bjargir-link .bjargir-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.bjargir-link .bjargir-title {
  font-weight: 500;
  font-size: 14px;
}
.bjargir-link .bjargir-desc {
  font-size: 12px;
  color: var(--text-muted);
}