@import url('/css/fonts.css');

/* 관리자는 하루 종일 표를 읽는 화면이라 밝은 배경을 유지한다. 대신 계열을 브랜드에
   맞춰 차가운 쪽으로 옮기고, 글자색을 브랜드 남색으로 써서 단말 화면과 한 벌로 보이게 했다.
   네온 민트·핫핑크 원색은 흰 배경에서 대비가 3:1 아래로 떨어져 읽히지 않으므로,
   같은 색상각을 유지한 채 명도만 낮춘 값을 쓴다. */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --border: #e4e7f1;
  --border-strong: #ccd1e3;
  --text: #101126;
  --text-secondary: #5c6280;
  --text-tertiary: #8d93ad;
  --accent: #d10069;
  --accent-hover: #ad0057;
  --accent-soft: #ffe8f2;
  --success: #00805a;
  --success-soft: #d6f8ed;
  --danger: #d92b4b;
  --danger-soft: #ffe4e8;
  --warning: #9c5a00;
  --warning-soft: #fff1cf;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 17, 38, 0.04);
  --shadow-md: 0 2px 6px rgba(16, 17, 38, 0.05), 0 1px 2px rgba(16, 17, 38, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 17, 38, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  word-break: keep-all;
}
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 700; line-height: 1.3; }

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  /* 밝은 관리자 화면에서 브랜드가 드러나는 유일한 큰 면. 행사 사이트의 딥네이비를 그대로 쓴다. */
  background: #101126;
  padding: 0 20px;
  height: 56px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topnav .brand {
  font-weight: 700;
  margin-right: 8px;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.topnav a {
  /* 남색 바 위의 글자라 따뜻한 회색은 탁해 보인다. 배경과 같은 계열의 차가운 회색을 쓴다. */
  color: #9aa2c4;
  text-decoration: none;
  padding: 8px 15px;
  /* 알약 — 행사 사이트의 내비게이션과 같은 형태. */
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
/* 현재 위치는 민트로 표시한다. 흰색 반투명만으로는 어느 메뉴에 있는지 한눈에 안 들어왔다. */
.topnav a.active { background: rgba(0, 255, 179, 0.14); color: #00ffb3; }
.topnav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.topnav .spacer { flex: 1; }
.topnav button {
  background: transparent;
  border: 1px solid rgba(180, 195, 255, 0.22);
  color: #9aa2c4;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.topnav button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.24); }

.page {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .label { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.stat-card .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-tertiary); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fbf9f5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  /* 알약 버튼은 행사 공식 사이트의 형태 언어. 관리자에도 같은 모양을 써서
     단말 화면과 한 시스템으로 보이게 한다. */
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
  box-shadow: 0 2px 8px -2px rgba(209, 0, 105, 0.4);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn.secondary:hover { background: #f2f4fa; border-color: var(--text-tertiary); }
.btn.danger { background: var(--danger); box-shadow: 0 2px 8px -2px rgba(217, 43, 75, 0.4); }
.btn.danger:hover { background: #b31f3c; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 100%;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 5px; font-weight: 600; }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }

.badge-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge-pill.vip { background: var(--warning-soft); color: #92400e; border-color: #fde3a3; }
.badge-pill.speaker { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.badge-pill.staff { background: #f1efe9; color: #47412f; border-color: var(--border); }
.badge-pill.general { background: #f6f4ee; color: var(--text-secondary); border-color: var(--border); }
.badge-pill.cancelled { background: var(--danger-soft); color: #b42318; border-color: #f4c6be; }
.badge-pill.checked { background: var(--success-soft); color: #067647; border-color: #b8ecd1; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; }
.hint { color: var(--text-tertiary); font-size: 12.5px; }
.error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 17, 38, 0.5);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg); padding: 24px;
  width: 480px; max-width: 90vw; max-height: 85vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
