:root {
  --text: #101828;
  --muted: #667085;
  --muted-light: #98a2b3;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #12b76a;
  --success-soft: #ecfdf3;
  --warning: #f79009;
  --warning-soft: #fffaeb;
  --danger: #f04438;
  --danger-soft: #fef3f2;
  --border: #e4e9f2;
  --surface: #ffffff;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.18);
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden,
[hidden] {
  display: none !important;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.ghost-btn:hover:not(:disabled) {
  border-color: #c7d2e5;
  background: #f9fbfd;
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.danger-btn:hover:not(:disabled) {
  background: #d92d20;
}

.text-btn {
  padding: 4px 8px;
  background: transparent;
  color: var(--primary);
}

.text-btn:hover:not(:disabled) {
  background: var(--primary-soft);
}

.primary-btn.full {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.modal-open {
  overflow: hidden;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field > span,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.form-field input,
.form-field select,
.form-field textarea,
.search-input input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field textarea {
  min-height: 76px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-input input:focus {
  border-color: #93b4f7;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #f2f4f7;
  color: #475467;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--published,
.status-badge--reserved {
  background: var(--success-soft);
  color: #067647;
}

.status-badge--draft {
  background: #f2f4f7;
  color: #475467;
}

.status-badge--boarded {
  background: var(--primary-soft);
  color: #175cd3;
}

.status-badge--cancelled,
.status-badge--expired,
.status-badge--full {
  background: var(--danger-soft);
  color: #b42318;
}

.status-badge--warning {
  background: var(--warning-soft);
  color: #b54708;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  transform: translate(-50%, 20px);
  min-width: 180px;
  max-width: calc(100vw - 32px);
  border-radius: 12px;
  padding: 12px 18px;
  background: #101828;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--success {
  background: #067647;
}

.toast--error {
  background: #b42318;
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
