* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  font-family:
    Arial,
    "Noto Sans KR",
    sans-serif;

  color: #1f2937;
  background-color: #f3f4f6;
}

.container {
  width: 90%;
  max-width: 900px;

  margin: 40px auto;
}

header {
  margin-bottom: 30px;
}

header h1 {
  margin-bottom: 12px;

  font-size: 36px;
  color: #111827;
}

header p {
  margin: 0;

  font-size: 17px;
  color: #6b7280;
}

.card {
  padding: 40px;

  background-color: white;
  border-radius: 18px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 24px;

  color: #0969da;
}

.search-box {
  display: flex;
  gap: 10px;

  margin-bottom: 20px;
}

.search-box input {
  flex: 1;

  min-width: 0;
  padding: 12px 14px;

  font-size: 16px;

  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.search-box input:focus {
  border-color: #0969da;

  box-shadow:
    0 0 0 3px rgba(9, 105, 218, 0.15);
}

.search-box button {
  padding: 12px 22px;

  font-size: 15px;
  color: white;

  background-color: #0969da;
  border: none;
  border-radius: 8px;

  cursor: pointer;
}

.search-box button:hover {
  background-color: #075bbd;
}

.search-box .secondary-button {
  color: #374151;
  background-color: #e5e7eb;
}

.search-box .secondary-button:hover {
  background-color: #d1d5db;
}

.search-box button:disabled {
  color: #9ca3af;
  background-color: #e5e7eb;

  cursor: not-allowed;
}

#status-message {
  margin: 20px 0;

  color: #374151;
}

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

table {
  width: 100%;

  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;

  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f3f4f6;
  color: #111827;
}

th:first-child,
td:first-child {
  width: 160px;
}

th:last-child,
td:last-child {
  width: 140px;
  text-align: center;
}

tbody tr:hover {
  background-color: #f8fafc;
}

.empty-message {
  padding: 40px;

  color: #6b7280;
  text-align: center;
}

.realtime-button {
  padding: 8px 18px;

  color: white;

  background-color: #0969da;
  border: none;
  border-radius: 7px;

  cursor: pointer;
}

.realtime-button:hover {
  background-color: #075bbd;
}

.realtime-button:disabled {
  color: #9ca3af;
  background-color: #e5e7eb;

  cursor: wait;
}

.realtime-panel {
  margin-top: 28px;
  padding: 24px;

  background-color: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}

.realtime-panel[hidden] {
  display: none;
}

.realtime-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.realtime-header h3 {
  margin: 0;

  color: #111827;
}

.realtime-header button {
  padding: 7px 14px;

  color: #374151;

  background-color: white;
  border: 1px solid #cbd5e1;
  border-radius: 7px;

  cursor: pointer;
}

.realtime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;

  margin-top: 22px;
}

.info-box {
  padding: 18px;

  text-align: center;

  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.info-label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  color: #6b7280;
}

.info-box strong {
  font-size: 24px;
  color: #111827;
}

.available-box strong {
  color: #0969da;
}

.update-time {
  margin: 18px 0 0;

  font-size: 14px;
  color: #6b7280;
  text-align: right;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;

  margin-top: 28px;
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  padding: 10px 22px;

  font-size: 15px;
  color: white;

  background-color: #0969da;
  border: none;
  border-radius: 8px;

  cursor: pointer;
}

.pagination button:hover {
  background-color: #075bbd;
}

.pagination button:disabled {
  color: #9ca3af;

  background-color: #e5e7eb;
  cursor: not-allowed;
}

#page-info {
  min-width: 60px;

  font-weight: bold;
  text-align: center;
}

@media (max-width: 600px) {
  .container {
    width: 94%;
    margin: 20px auto;
  }

  header h1 {
    font-size: 28px;
  }

  .card {
    padding: 24px 18px;
  }

  .search-box {
    flex-wrap: wrap;
  }

  .search-box input {
    flex-basis: 100%;
  }

  .search-box button {
    flex: 1;
  }

  th,
  td {
    padding: 12px 10px;
  }

  th:first-child,
  td:first-child {
    width: 100px;
  }

  th:last-child,
  td:last-child {
    width: 100px;
  }

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

  .update-time {
    text-align: left;
  }
}