@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");

:root {
  --primary: #7a6ad8;
  --primary-2: #8a7fe2;
  --bg: #ffffff;
  --bg-soft: #f6f5ff;
  --text: #1e1e28;
  --muted: #6b6b83;
  --border: #e9e7ff;
  --ring: rgba(122, 106, 216, .35);
  --good: #16a34a;
  --warn: #b45309;
  --danger: #b91c1c;
  --row-label: 220px;
  --row-gap: 14px;
}
  
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.45;
}

#testUrl::-webkit-scrollbar {
  height: 6px
}

#testUrl::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 8px
}

#testUrl::-webkit-scrollbar-track {
  background: transparent
}

#copyLinkInput,
#__genLinkInput {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--primary), #8a7fe2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12)
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

/* Right side nav menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;                /* space between items */
  align-items: center;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.16);
  opacity: 0.95;
}

.nav-menu li a.active {
  background: rgba(255, 255, 255, 0.24);
}
@media (max-width: 768px) {
  .nav-inner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: .7px;
  margin-right: 14px;
  color: #fff;
  text-decoration: none;
  display: inline-block
}

.logo:focus {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px
}

.logo:hover {
  opacity: .9
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 28px
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px
}

.page-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px
}

.kicker {
  font-size: 12px;
  color: var(--muted)
}

/* 
    .grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
    @media (max-width: 980px){ .grid{grid-template-columns:1fr} } */

.card {

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(122, 106, 216, 0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px
}

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0
}

.row+.row {
  border-top: 1px dashed var(--border)
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr
  }
}

.label {
  font-weight: 600
}

.hint {
  font-size: 12px;
  color: var(--muted)
}

.muted {
  color: var(--muted)
}

input[type="text"],
input[type="url"],
input[type="datetime-local"],
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: inherit;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring)
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10)
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent
}

.btn-ghost {
  color: #fff;
  background-color: #7a6ad8;
}

.btn-danger {
  background: #fff;
  color: var(--danger)
}

.btn-good {
  background: #fff;
  color: var(--good)
}

.btn-block {
  width: 100%;
  justify-content: center
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px
}

.tag-open {
  color: #065f46;
  background: #ecfdf5
}

/* teal */
.tag-closed {
  color: #991b1b;
  background: #fee2e2
}

.tag-sched {
  color: #7a6ad8;
  background: #f5f3ff
}

.inline-radio {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

/* version */
.chip {
  width: 170px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: box-shadow .12s ease, transform .05s ease;
}

.chip input {
  appearance: none;
  inline-size: 0;
  block-size: 0;
  margin: 0
}

.chip[data-selected="true"] {
  box-shadow: 0 0 0 3px rgba(122, 106, 216, .15);
  border-color: var(--primary)
}

.chip:active {
  transform: scale(.995)
}

.pill {
  border: 1px solid var(--border);
  width: 800px;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff
}

/* URL box */
.urlbox {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mono {
  width: 350px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
}


/* Warning drawer */
.warn {
  border: 1px dashed #facc15;
  background: #fffbeb;
  color: #854d0e;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.warn strong {
  display: flex;
  align-items: center;
  gap: 8px
}

.warn-btn {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #854d0e;
  font-weight: 800
}

.warn-panel {
  display: none;
  margin-top: 10px;
  border: 1px dashed #fde68a;
  background: #fff7ed;
  color: #7c2d12;
  border-radius: 12px;
  padding: 12px
}

.warn-panel.show {
  display: block
}

/* Make the expanded panel full-bleed across both columns */
#warnPanel {
  /* it's inside the right column; pull it left by label+gap and widen */
  margin-left: calc(-1 * (var(--row-label) + var(--row-gap)));
  width: calc(100% + var(--row-label) + var(--row-gap));
}

/* Collapse when hidden (your JS toggles .show) */
.warn-panel {
  display: none;
}

.warn-panel.show {
  display: block;
}

/* Avoid clipping if any ancestor had overflow hidden/auto */
.card {
  overflow: visible;
}

/* On mobile, the row becomes single-column; reset the bleed */
@media (max-width: 720px) {
  #warnPanel {
    margin-left: 0;
    width: 100%;
  }
}

/* Divider card-list */
.line {
  height: 1px;
  background: var(--border);
  margin: 12px 0
}

/* Footer */
.bottom-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px
}

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #1f2335;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  font-weight: 600;
  font-size: 13px;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateY(0)
}

a.inline {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none
}

a.inline:hover {
  text-decoration: underline
}

/* Small helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}









.hint {
  font-size: 12px;
  color: #7a6ad8;
  /* color:var(--muted);  */
}

/* Tooltip trigger */
.hint-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

/* Bubble (above) — 350x300, scroll if needed */
.hint-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  /* show above the trigger */
  width: 300px;
  max-height: 300px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #7a6ad8;
  color: #fff;
  line-height: 1.35;
  overflow: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  z-index: 9999;
  /* stay on top */
  white-space: normal;
  text-align: left;

  opacity: 0;
  transform: translate(-50%, 4px) scale(.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

/* Arrow (points to trigger) */
.hint-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  width: 10px;
  height: 10px;
  background: #7a6ad8;
  transform: translate(-50%, 0) rotate(45deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
  z-index: 9998;
  opacity: 0;
  transition: opacity .15s ease;
}

/* Show on hover + keyboard focus */
.hint-tooltip:hover::after,
.hint-tooltip:focus::after,
.hint-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.hint-tooltip:hover::before,
.hint-tooltip:focus::before,
.hint-tooltip:focus-visible::before {
  opacity: 1;
}

/* Reduced motion users */
@media (prefers-reduced-motion: reduce) {

  .hint-tooltip::after,
  .hint-tooltip::before {
    transition: none;
  }
}
/* -------- Profile trigger & popover (shared across pages) -------- */

.nav-menu .profile-li {
  position: relative;
}

/* Chip-style profile button */
.profile-trigger {
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;          /* no underline */
  font-family: inherit;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.22);
 
}

.profile-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Popover container */
.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  padding: 10px;
  display: none;
  z-index: 1000;
}

.profile-popover.show {
  display: block;
}

/* Avatar row */
.profile-popover .who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.profile-popover .avatar-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7a6ad8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
}

/* Name */
.profile-popover .name {
  margin: 0;
  padding: 0;
}

.profile-popover .name-link {
  margin-left: -9px;
  font-weight: 600;
  font-size: 16px;
 color:#524694;
  text-decoration: none !important;
}

.profile-popover .name-link:hover {
  color: #7a6ad8;
  text-decoration: underline;
}

/* Menu list */
.profile-popover .menu {
  margin-top: 6px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.profile-popover .menu .menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;          /* anchors look like buttons */
  cursor: pointer;
}

.profile-popover .menu .menu-link:hover {
  background: #f4f4ff;
  color: #5b4dac;
}
 /* Logout overlay */
.logout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.logout-card {
  background: #fff;
  padding-top: -10px;
  padding-bottom: 20px;
  border-radius: 10px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.logout-card h3 {
margin-bottom: -10px;
  font-weight: 700;
}

.logout-card p {
  margin-bottom: 16px;

}

.logout-card .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.logout-card button {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

#confirm-logout {
  background: #7a6ad8;
  color: #fff;
}

#cancel-logout {
  background: #e0e0e0;
  color: #222;
}

.hidden {
  display: none !important;
}html, body {
  zoom: 1.12 !important;
}
 