/* History Board Specific Styles */
.history-container {
  margin-top: 1.5rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  text-align: left;
}

/* 다크 모드 호환 헤더 글자색 보완 */
.history-table th {
  background-color: var(--bg-secondary, rgba(255, 255, 255, 0.05));
  font-weight: bold;
  color: var(--text-color, #ffffff);
  opacity: 0.9;
}

.history-table tr.history-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.history-table tr.history-row:hover {
  background-color: var(--bg-hover, rgba(255, 255, 255, 0.08));
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-main, #1e1e1e);
  color: var(--text-color, #ffffff);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.modal-novel-box {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.modal-novel-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.modal-novel-text {
  white-space: pre-line;
  line-height: 1.7;
  font-family: serif;
  font-size: 0.95rem;
}

.modal-answer-box {
  background: rgba(25, 118, 210, 0.15);
  border-left: 4px solid #1976d2;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.no-history {
  text-align: center;
  padding: 2rem;
  color: #888;
}
