:root {
  --bg-white: #ffffff;
  --bg-light-gray: #f7f7f7;
  --text-dark: #37352f;
  --text-secondary: #787774;
  --accent-color: #6565f0;
  --border-color: #e5e5e5;
  --spacing: 30px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-area {
  display: flex;
  gap: 5px;
}

.search-input {
  font-size: 0.95rem;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 250px;
}

.search-button {
  font-size: 0.95rem;
  padding: 8px 15px;
  background-color: var(--text-secondary);
  color: var(--bg-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: var(--text-dark);
}

.write-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s;
}

.write-button:hover {
  background-color: #5252e6;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  text-align: left;
}

.board-table thead {
  border-bottom: 2px solid var(--border-color);
}

.board-table th,
.board-table td {
  padding: 12px 15px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

.board-table th {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

.col-num {
  width: 8%;
  text-align: center;
}
.col-title {
  width: 55%;
}
.col-author {
  width: 10%;
  text-align: center;
}
.col-date {
  width: 17%;
  text-align: center;
}
.col-views {
  width: 10%;
  text-align: center;
}

.board-table td a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

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

.comment-count {
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-left: 5px;
  font-weight: bold;
}

.board-table .notice {
  background-color: #fcf8e3;
  font-weight: bold;
}

.board-table tbody tr:hover:not(.notice) {
  background-color: #f7f7f7;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a {
  display: block;
  padding: 8px 12px;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-left: none;

  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.pagination a:first-child {
  border-left: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
}

.pagination a:last-child {
  border-radius: 0 4px 4px 0;
}

.pagination a:hover,
.pagination a.active-page {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.form-inline {
  display: flex;
  gap: 20px;
}

.form-inline .inline-item {
  flex: 1;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
  margin-bottom: 0;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.form-actions .action-button {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;

  min-width: 120px;
}

.form-actions button[type="submit"] {
  background-color: var(--accent-color);
  color: var(--bg-white);
  border: 2px solid var(--accent-color);
}

.form-actions button[type="submit"]:hover {
  background-color: #5252e6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-actions .secondary-button {
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.form-actions .secondary-button:hover {
  background-color: var(--bg-light-gray);
  border-color: var(--text-secondary);
  color: var(--text-dark);
}

.secondary-button {
  background-color: #aaa;
}

.post-detail-section {
  padding: var(--spacing);
}

#post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}

.post-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.post-content {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.post-actions .action-button {
  font-size: 0.95rem;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;

  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#edit-btn,
.post-actions .action-button:not(.secondary-button):not(.tertiary-button) {
  background-color: var(--accent-color);
  color: white;
}

#edit-btn:hover,
.post-actions
  .action-button:not(.secondary-button):not(.tertiary-button):hover {
  background-color: #5252e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#delete-btn,
.post-actions .secondary-button {
  background-color: #dc3545;
  color: white;
}

#delete-btn:hover,
.post-actions .secondary-button:hover {
  background-color: #c82333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-actions .tertiary-button {
  background-color: #6c757d;
  color: white;
}

.post-actions .tertiary-button:hover {
  background-color: #5a6268;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
