:root {
  --bg: #0f1220;
  --panel: #171a2b;
  --panel-2: #1f2338;
  --text: #f2f4ff;
  --muted: #9aa3c2;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #5b8cff;
  --primary-hover: #4a78e0;
  --green: #19c37d;
  --orange: #f59e0b;
  --red: #ef4444;
  --gray: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 20% 10%, #1c2140, #0f1220 55%);
  color: var(--text);
}

.suggestions-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0 0 6px;
  font-size: 30px;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-primary {
  background: var(--primary);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #2a3153;
}

.btn-ghost {
  background: transparent;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 160px 170px 90px;
  gap: 8px;
  margin-bottom: 14px;
}

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

.textarea {
  resize: vertical;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.suggestions-table {
  width: 100%;
  border-collapse: collapse;
}

.suggestions-table thead {
  background: #212746;
}

.suggestions-table th,
.suggestions-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

.suggestions-table tbody tr:hover {
  background: rgba(91, 140, 255, 0.1);
}

.status-badge,
.visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-received {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
}

.status-reviewing {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-done {
  background: rgba(25, 195, 125, 0.2);
  color: #4ade80;
}

.status-hold {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.vis-public {
  background: rgba(91, 140, 255, 0.18);
  color: #b9cdff;
}

.vis-private {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.title-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.title-link:hover {
  color: #b9cdff;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ticket-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 18px;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  margin: 8px 0 12px;
  font-size: 14px;
}

.ticket-title {
  margin: 0;
  font-size: 24px;
}

.ticket-content {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12162a;
  padding: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.ticket-content.locked {
  color: var(--muted);
  text-align: center;
}

.reply-block {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.reply-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.7);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 16px;
}

.modal h2 {
  margin: 0 0 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

  .suggestions-table th,
  .suggestions-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    flex-direction: column;
  }
}
