/* Layout specific to the Links admin panel — built on top of the
   Prática Biomed design system tokens/components (vendor/*.css). */

/* components.css sets display:flex on .alert, which beats the
   browser's default [hidden]{display:none} rule (same specificity,
   author stylesheet wins). Restore it explicitly. */
[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  width: 640px;
  height: 640px;
  right: -220px;
  top: -200px;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow-teal-soft), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------------- Topbar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  height: 34px;
  width: auto;
}

/* ---------------- Board ---------------- */
.board {
  display: flex;
  gap: 20px;
  padding: 32px;
  align-items: flex-start;
  overflow-x: auto;
}

.category {
  width: 290px;
  flex-shrink: 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-name { margin: 0; }

.category-actions { display: flex; gap: 4px; }

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  border-radius: var(--r-sm);
  color: var(--muted-foreground);
}

.icon-btn:hover { background: rgba(143, 203, 198, .1); color: var(--foreground); }

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 8px;
  margin-bottom: 12px;
}

.link-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.link-card-title {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 6px;
  color: var(--foreground);
}

.link-card-slug { margin-bottom: 6px; word-break: break-all; }

.link-card-stats { display: block; }

.link-card-actions {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  justify-content: flex-end;
}

.add-category-btn {
  width: 248px;
  align-self: flex-start;
  flex-shrink: 0;
}

/* ---------------- Modal ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 23, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: -24px;
  margin: -24px -24px 0;
  padding: 24px 24px 0;
  background: var(--card);
  z-index: 1;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-foreground);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(143, 203, 198, .1); color: var(--foreground); }

.utm-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* ---------------- Login ---------------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-aura {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  background: var(--aura);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 4px;
  display: block;
}
