/* ═══════════════════════════════════════════════════════════════
   LandingPage.css — Potentiam platform base (verbatim)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --landing-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 42%, #1d4ed8 100%);
  --landing-surface: rgba(255, 255, 255, 0.08);
  --landing-surface-strong: rgba(15, 23, 42, 0.6);
  --landing-text: #f8fafc;
}

.landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vw, 5.5rem);
  background: var(--landing-gradient);
  color: var(--landing-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.landing-header {
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
  text-align: left;
}

.landing-header__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.landing-header__logo {
  width: clamp(72px, 7vw, 92px);
  height: clamp(72px, 7vw, 92px);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(59, 143, 212, 0.35);
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.landing-header__copy {
  display: grid;
  gap: 0.3rem;
  align-items: center;
}

.landing-header__eyebrow {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.landing-header__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.landing-header__lede {
  margin: 0;
  max-width: 100ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.92);
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.8rem, 6vw, 4rem);
}

.tool-grid {
  display: grid;
  gap: clamp(1.4rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: 26px;
  background: var(--landing-surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 50px 70px -55px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 60px 90px -55px rgba(15, 23, 42, 1);
}

.tool-card__accent {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25) 0%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tool-card:hover .tool-card__accent { opacity: 0.35; }

.tool-card__accent--linkedin {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.1) 65%);
}

.tool-card__accent--excel {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.1) 65%);
}

.tool-card__accent--orgchart {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.38) 0%, rgba(250, 204, 21, 0.1) 65%);
}

.tool-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 1;
}

.tool-card__content h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.65rem);
  font-weight: 600;
}

.tool-card__content p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
}

.tool-card__actions {
  position: relative;
  z-index: 1;
}

.tool-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  color: var(--landing-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tool-card__cta:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.55);
}

.landing-footer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.78);
}

@media (max-width: 720px) {
  .landing-shell { padding: 2.2rem 1.5rem 2.8rem; }
  .landing-header__title { font-size: 2rem; }
  .tool-card { padding: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Org Chart Editor — tab shell, forms, file lists
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { min-height: 100vh; }

/* Tighten the shell padding for the app context */
.landing-shell {
  gap: 1.4rem;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem) clamp(1.8rem, 4vw, 3rem);
  height: 100vh;
  overflow: hidden;
}

.landing-main {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

/* ─── Message banner ─────────────────────────────────────────── */
.message-banner {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.message-banner.success {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.message-banner.warning {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.3);
}

.message-banner.error {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ─── Workspace card / tab shell ────────────────────────────── */
.workspace-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--landing-surface);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 50px 70px -55px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
}

.tab-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Tab bar ────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.tab-button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 17px 0 15px;
  color: rgba(226, 232, 240, 0.6);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab-button:hover { color: var(--landing-text); }
.tab-button.active { color: var(--landing-text); }

.tab-button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #3b82f6;
}

/* ─── Tab panels ─────────────────────────────────────────────── */
.tab-panel { display: none; flex: 1 1 auto; min-height: 0; }
.tab-panel.active { display: block; }

.tab-panel-scroll {
  height: 100%;
  overflow: auto;
  padding: 24px 28px 28px;
}

/* ─── Panel ──────────────────────────────────────────────────── */
.panel {
  min-height: 100%;
  border-radius: 22px;
  background: var(--landing-surface-strong);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.section-index {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 0.86rem; font-weight: 800;
  flex-shrink: 0;
}

.section-header h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; }
.section-header p  { margin: 0; color: rgba(226, 232, 240, 0.72); font-size: 0.94rem; line-height: 1.5; }

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-copy, .section-note {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ─── Step stack / subpanels ─────────────────────────────────── */
.step-stack { display: grid; gap: 14px; }

.subpanel {
  display: grid; gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.2s ease;
}

.subpanel:hover { border-color: rgba(148, 163, 184, 0.45); }
.step2-upload { margin-bottom: 14px; }

.subpanel-head h4 { margin: 0 0 5px; font-size: 0.99rem; font-weight: 700; color: var(--landing-text); }
.subpanel-head p  { margin: 0; color: rgba(226, 232, 240, 0.72); font-size: 0.92rem; line-height: 1.5; }

/* ─── Inputs ─────────────────────────────────────────────────── */
.field-group { display: grid; gap: 8px; }

.field-group label { font-size: 0.9rem; font-weight: 600; color: rgba(226, 232, 240, 0.9); }

input[type="file"],
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.4);
  color: var(--landing-text);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

input[type="file"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

input::placeholder { color: rgba(148, 163, 184, 0.6); }
textarea { resize: vertical; }

/* ─── Buttons ────────────────────────────────────────────────── */
.primary-button,
.secondary-button,
.file-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.secondary-button,
.file-link {
  border: 1px solid rgba(248, 250, 252, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: var(--landing-text);
}

.secondary-button:hover,
.file-link:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(248, 250, 252, 0.6);
}

/* ─── Paths ──────────────────────────────────────────────────── */
.paths {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.inline-paths { display: grid; gap: 4px; }

/* ─── File list ──────────────────────────────────────────────── */
.file-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }

.file-item,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state { justify-content: center; color: rgba(226, 232, 240, 0.72); min-height: 80px; }
.file-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form { margin: 0; }
.file-name { font-size: 0.96rem; font-weight: 600; color: var(--landing-text); word-break: break-word; }
.file-meta { margin-top: 3px; color: rgba(226, 232, 240, 0.72); font-size: 0.86rem; }

code {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.88em;
  color: #93c5fd;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  html, body { overflow: auto; }
  .landing-shell { height: auto; min-height: 100vh; overflow: auto; padding: 2rem 1.5rem; gap: 1.2rem; }
  .landing-main { min-height: auto; }
  .workspace-card, .tab-shell { min-height: auto; }
  .tab-bar { overflow: auto; padding: 0 16px; }
  .tab-panel-scroll { padding: 16px; }
  .panel-toolbar, .file-item { flex-direction: column; align-items: flex-start; }
  .file-actions, .secondary-button, .file-link, .primary-button { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════
   LoginPage.css — Potentiam login page (from design-reference)
   ═══════════════════════════════════════════════════════════════ */

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vw, 5.5rem);
  background: var(--landing-gradient);
  color: var(--landing-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.login-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 6vw, 3.6rem);
}

.login-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: start;
  padding: clamp(2rem, 4vw, 2.8rem);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 44px 68px -40px rgba(15, 23, 42, 0.9);
  max-width: 560px;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: #f8fafc;
}

.login-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.65);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-button:hover,
.login-button:focus {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 20px 40px -25px rgba(15, 23, 42, 0.75);
}

.login-button:focus-visible {
  outline: 3px solid rgba(191, 219, 254, 0.75);
  outline-offset: 3px;
}

.login-button__icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: #ffffff;
}

/* User badge — shown in app header when authenticated */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

.user-badge a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.4);
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.user-badge a:hover {
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
}

@media (max-width: 720px) {
  .login-shell {
    padding: 2.2rem 1.5rem 2.8rem;
  }

  .login-card {
    width: 100%;
    padding: 1.8rem;
  }
}

/* Login error message (domain restriction) */
.login-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
