@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --bg: #07111f;
  --bg-alt: #0b1628;
  --panel: rgba(11, 22, 40, 0.76);
  --panel-strong: rgba(16, 31, 54, 0.92);
  --panel-soft: rgba(19, 37, 64, 0.72);
  --border: rgba(143, 180, 255, 0.16);
  --text: #f5f8ff;
  --muted: #9eb2d0;
  --accent: #284d88;
  --accent-mid: #7581c3;
  --accent-hover: #e154ff;
  --accent-cool: #6a8ec1;
  --surface-glow: rgba(109, 153, 255, 0.16);
  --shadow: 0 32px 90px rgba(2, 7, 18, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(117, 129, 195, 0.24), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(225, 84, 255, 0.18), transparent 26%),
    radial-gradient(circle at 52% 84%, rgba(106, 142, 193, 0.16), transparent 28%),
    linear-gradient(180deg, #050d18 0%, #081221 42%, #091728 100%);
  min-height: 100vh;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  padding: 30px 0 34px;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 1.02;
  max-width: 820px;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #9cdfff;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.two-column {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  padding: 28px;
}

.feature-card {
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(156, 223, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(18, 35, 61, 0.95), rgba(9, 20, 37, 0.9));
  border: 1px solid rgba(143, 180, 255, 0.18);
}

.stack-form,
.slot-editor,
.slot-list {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
.inline-field {
  display: grid;
  gap: 8px;
}

label span,
.inline-field span {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(143, 180, 255, 0.14);
  padding: 13px 14px;
  background: rgba(7, 16, 30, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input[type="date"],
input[type="time"] {
  color-scheme: dark;
  padding-right: 52px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  width: 20px;
  height: 20px;
  filter: invert(0.96) brightness(1.2) contrast(1.05);
  cursor: pointer;
  margin-right: 2px;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
  color: #f5f8ff;
}

input::placeholder {
  color: rgba(158, 178, 208, 0.74);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(156, 223, 255, 0.52);
  box-shadow:
    0 0 0 3px rgba(106, 142, 193, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

button {
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  cursor: pointer;
  transition:
    transform 120ms ease,
    opacity 120ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background-image: linear-gradient(0.403turn, var(--accent) 0%, var(--accent-mid) 100%);
  color: white;
  box-shadow: 0 12px 28px rgba(35, 65, 117, 0.28);
}

.secondary-button {
  background-image: linear-gradient(0.403turn, var(--accent) 0%, var(--accent-mid) 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(35, 65, 117, 0.22);
}

.primary-button::after,
.secondary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
  background-image: linear-gradient(0.25turn, var(--accent-hover) 50%, var(--accent-cool) 100%);
}

.primary-button:hover::after,
.secondary-button:hover::after,
.primary-button:focus-visible::after,
.secondary-button:focus-visible::after {
  opacity: 1;
}

button > * {
  position: relative;
  z-index: 1;
}

.small-button {
  padding: 10px 14px;
}

.muted {
  color: var(--muted);
}

.clean-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.event-layout {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.event-header,
.section-head,
.toolbar,
.summary-grid {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.event-title-row,
.edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.event-title-row h2 {
  margin: 0;
}

.icon-button,
.ghost-button {
  border-radius: 999px;
  padding: 10px 14px;
}

.icon-button {
  background: rgba(31, 122, 95, 0.1);
  color: var(--accent-strong);
  min-width: 42px;
}

.ghost-button {
  background: rgba(31, 28, 22, 0.06);
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inset-panel {
  padding: 22px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(16, 30, 52, 0.88), rgba(10, 20, 37, 0.82)),
    rgba(255, 255, 255, 0.04);
}

.participant-list,
.best-slots {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.participant-pill,
.best-slot-card,
.slot-row {
  border-radius: 16px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 33, 56, 0.92), rgba(11, 23, 41, 0.88));
}

.participant-pill,
.best-slot-card {
  padding: 14px 16px;
}

.participant-pill strong,
.best-slot-card strong {
  display: block;
}

.slot-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 12px;
}

.slot-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hidden-panel {
  display: none;
}

.remove-button {
  align-self: end;
  background: rgba(255, 255, 255, 0.06);
  color: #d2def4;
  padding: 10px 14px;
}

.heatmap-wrap {
  overflow: auto;
  border-radius: 18px;
  background: rgba(8, 18, 33, 0.82);
  border: 1px solid rgba(143, 180, 255, 0.12);
}

.heatmap-grid {
  display: grid;
  min-width: 820px;
  grid-template-columns: 110px repeat(var(--heatmap-columns), minmax(112px, 1fr));
}

.heatmap-cell,
.heatmap-head,
.heatmap-time {
  border-right: 1px solid rgba(143, 180, 255, 0.08);
  border-bottom: 1px solid rgba(143, 180, 255, 0.08);
  padding: 10px 12px;
  min-height: 52px;
}

.heatmap-head,
.heatmap-time {
  position: sticky;
  background: rgba(9, 18, 34, 0.96);
  z-index: 1;
}

.heatmap-head {
  top: 0;
  text-align: center;
  font-weight: 600;
  color: #dbe7ff;
}

.heatmap-time {
  left: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.heatmap-cell {
  display: grid;
  gap: 4px;
}

.heatmap-meta {
  font-size: 0.82rem;
  color: rgba(214, 227, 255, 0.72);
}

.status-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(40, 77, 136, 0.24), rgba(117, 129, 195, 0.18));
  border: 1px solid rgba(143, 180, 255, 0.18);
}

.empty-state {
  padding: 18px;
  border-radius: 14px;
  background: rgba(12, 24, 42, 0.78);
  color: var(--muted);
  border: 1px solid rgba(143, 180, 255, 0.1);
}

.icon-button {
  background-image: linear-gradient(0.403turn, rgba(40, 77, 136, 0.18) 0%, rgba(117, 129, 195, 0.18) 100%);
  color: #ffffff;
  border: 1px solid rgba(143, 180, 255, 0.16);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: #d8e4ff;
  border: 1px solid rgba(143, 180, 255, 0.12);
}

.hero,
.panel,
.feature-card,
.inset-panel,
.participant-pill,
.best-slot-card,
.slot-row,
.heatmap-wrap,
.status-banner,
.empty-state {
  position: relative;
}

.panel::before,
.feature-card::before,
.inset-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
}

.hero::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, #9cdfff 0%, rgba(156, 223, 255, 0) 100%);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 24px;
  }

  .two-column,
  .summary-grid,
  .slot-row,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .slot-side,
  .event-title-row,
  .edit-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .event-header,
  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
