:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(15,23,42,0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #eef2f7 60%);
  color: var(--text);
  padding: 32px;
  line-height: 1.45;
}

/* 페이지 레이아웃 */
.page {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* 제목 */
h1 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text);
}

/* 검색 영역 */
#search {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.1);
  margin-right: 8px;
  font-size: 1rem;
}

button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 6px 18px rgba(37,99,235,0.14);
  transition: transform .12s ease, box-shadow .12s ease;
}
button:hover { transform: translateY(-2px); }

/* 테이블 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

th {
  background: #f9fafc;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

td a {
  color: var(--accent);
  text-decoration: none;
}
td a:hover { text-decoration: underline; }

/* 페이지네이션 */
div.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

div.pagination a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}

div.pagination a:hover {
  background: rgba(37,99,235,0.08);
}

div.pagination a.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}
