/* ========= Base & Brand ========= */
* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}

:root {
  --vh-purple: #6c5ce7;
  --vh-purple-dark: #5a4bcf;
  --vh-ink: #0b1020;
  --vh-border: #e5e7eb;
}

/* Start with content hidden until login */
.contentScreen { display: none; }

/* Header */
.topBar { padding: 16px 20px 0 20px; border-bottom: 1px solid var(--vh-border); }
.brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps logout on the right */
  gap: 12px;
}
.brandHeader { display:flex; align-items:center; gap:10px; }
.brandHeader.compact { margin-bottom: 0; }
.siteLogo { height: 42px; width: auto; object-fit: contain; }
.brandTitle { line-height: 1.1; }
.brandName { font-weight: 800; letter-spacing: 0.2px; color: var(--vh-ink); }
.brandTag { font-size: 12px; color: #64748b; }

.pageHeading { font-size: 24px; font-weight: 800; margin: 12px 0; color: var(--vh-ink); }

/* Link list */
.guideList { list-style:none; padding:0; margin:0 0 16px 0; display:flex; flex-wrap:wrap; gap:10px 16px; }
.guideLink {
  display:inline-block; text-decoration:none; border:1px solid var(--vh-border);
  border-radius:20px; padding:8px 14px; font-weight:600; color:var(--vh-ink); background:#fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.guideLink:hover { background:#f8f8ff; border-color:#cfc6ff; box-shadow:0 1px 3px rgba(0,0,0,.06); }

/* Sections */
.containerWithSidebarPadding { width:100%; max-width:100%; padding:20px; background:#fff; }
.transferSection { border:1px solid var(--vh-border); padding:20px 40px 20px 20px; border-radius:12px; margin:16px 20px; }
.formHeader { font-size:18px; font-weight:700; margin:10px 0; color:var(--vh-ink); }
.embedWrapper { position:relative; box-sizing:content-box; max-height:80svh; width:100%; padding:40px 0; }

/* Buttons */
.actionButton {
  border:none; color:#fff; padding:12px 18px; font-size:14px; font-weight:700;
  border-radius:8px; cursor:pointer; transition:background-color .2s, transform .02s, opacity .2s;
}
.saveButton { background:#6c5ce7; }
.saveButton:hover { background:#5a4bcf; }
.deleteButton { background:#ef4444; }
.deleteButton:hover { background:#dc2626; }
.actionButton:active { transform: translateY(1px); }
.actionButton[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Outline/secondary button for Request access */
.outlineButton {
  display: inline-block;
  text-align: center;
  background: #fff;
  color: var(--vh-purple);
  border: 2px solid var(--vh-purple);
  text-decoration: none;
}
.outlineButton:hover { background: rgba(108,92,231,0.08); }

/* Login page */
.loginScreen {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:#f4f6f9; padding:20px;
}
.loginCard {
  background:#fff; padding:32px 28px; border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08); width:100%; max-width:420px; text-align:center;
}
.siteLogoLarge { height:56px; margin-bottom:8px; }
.loginSubtitle { font-size:14px; font-weight:600; color:#6c5ce7; margin-bottom:12px; }
.loginTitle { font-size:22px; font-weight:800; color:var(--vh-ink); margin-bottom:18px; }
.loginForm .formGroup { margin-bottom:14px; }
.input {
  width:100%; padding:12px 14px; border:1px solid #cbd5e1; border-radius:8px;
  font-size:14px; color:var(--vh-ink); outline:none;
}
.input:focus { border-color:#6c5ce7; box-shadow:0 0 0 3px rgba(108,92,231,.12); }

.loginActions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
/* Optional: show buttons side-by-side on wider screens */
@media (min-width: 520px) {
  .loginActions {
    grid-template-columns: 1fr 1fr;
  }
}

.errorText { color:#b00020; margin-top:10px; min-height:20px; }

/* Alerts */
.errorBox {
  background-color: #f8d7da; border: 1px solid #f5c6cb;
  padding: 15px 20px; border-radius: 8px; margin: 10px; font-size: 15px;
}
