:root {
  --bg: #edf4ff;
  --bg-soft: rgba(255, 255, 255, 0.75);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(13, 50, 117, 0.12);
  --line-strong: rgba(13, 50, 117, 0.22);
  --text: #102243;
  --muted: #5f7395;
  --accent: #2e6fe8;
  --accent-strong: #1f57bf;
  --accent-soft: rgba(46, 111, 232, 0.12);
  --success-bg: rgba(19, 146, 90, 0.14);
  --success-text: #126a47;
  --error-bg: rgba(191, 52, 52, 0.12);
  --error-text: #9f2525;
  --shadow: 0 24px 60px rgba(17, 44, 92, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121, 175, 255, 0.38), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.9), transparent 25%),
    linear-gradient(160deg, #eff5ff 0%, #e7f0ff 38%, #f7fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell,
.login-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.login-body {
  display: flex;
  align-items: center;
}

.login-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  width: 100%;
}

.login-hero,
.login-card,
.panel,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-hero {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  background: linear-gradient(180deg, rgba(46, 111, 232, 0.18), rgba(46, 111, 232, 0));
  border-radius: 50%;
}

.login-card {
  padding: 32px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.login-copy {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(17, 44, 92, 0.08);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 1.5rem;
}

.brand-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #7ab2ff);
  color: white;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.user-chip {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.user-chip span {
  font-weight: 700;
}

.user-chip small {
  color: var(--muted);
}

.page-content {
  display: grid;
  gap: 20px;
}

.hero-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta span,
.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
}

.admin-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.panel {
  padding: 24px;
}

.secondary-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 255, 0.98));
}

.panel-heading {
  margin-bottom: 18px;
}

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

.field,
.stack-form label,
.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.checkbox-field {
  justify-content: end;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(46, 111, 232, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 111, 232, 0.12);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--accent);
}

.booking-form,
.stack-form {
  display: grid;
  gap: 18px;
}

.inline-form {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), #5d9eff);
  box-shadow: 0 14px 24px rgba(46, 111, 232, 0.22);
}

.secondary-button,
.ghost-button {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.danger-button {
  color: #a11d1d;
  background: rgba(191, 52, 52, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(19, 146, 90, 0.2);
}

.flash-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: rgba(191, 52, 52, 0.18);
}

.flash-list {
  margin: 10px 0 0;
}

.mini-list,
.booking-cards,
.user-list {
  display: grid;
  gap: 12px;
}

.mini-card,
.booking-card,
.user-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.mini-card,
.booking-card {
  display: grid;
  gap: 6px;
}

.booking-card-head,
.user-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-panel {
  padding: 10px;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid div,
.user-row div:first-child {
  display: grid;
  gap: 4px;
}

.detail-grid span,
.user-row p,
.empty-state,
.empty-row {
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(460px, 100%);
}

.search-form input {
  flex: 1;
}

.simple-shell {
  display: grid;
  place-items: center;
}

.centered-panel {
  width: min(560px, 100%);
  text-align: center;
}

@media (max-width: 980px) {
  .login-panel,
  .content-grid,
  .admin-grid,
  .hero-card,
  .shell-header,
  .detail-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .login-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 12px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }

  .brand-lockup h1 {
    font-size: 1.1rem;
  }
}
