body {
	font-family: 'Noto Sans KR', sans-serif;
	background: #f7f9fc;
	margin: 0;
	overflow: auto;
}

/* 상단 게시판종류 탭선택바 */
.tabs {
	display: flex;
	gap: 10px;
	margin: 20px;
}

.tabs button {
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
}

.tabs .active {
	background: #0066ff;
	color: #fff;
	border-color: #0066ff;
}

/* ////////////////////////////// list section ////////////////////////////// */
.board-section {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

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

.board-header h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
}

.header-right {
	display: flex;
	margin-left: auto;
	gap: 10px;
	align-items: center;
}

.search-box {
	display: flex;
	gap: 5px;
	align-items: center;
	flex-wrap: nowrap;
}

.search-box input, .search-box select {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.search-btn, .write-btn {
	padding: 6px 12px;
	background: #0066ff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.board-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.board-table th, .board-table td {
	padding: 10px;
	text-align: center;
	border-bottom: 1px solid #ddd;
}

.board-table thead {
	background: #f1f1f1;
}

/* 짝수 레코드 음영 */
.board-table tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

/* Hover 시 강조 효과 */
.board-table tbody tr:hover {
	background-color: #e6f0ff;
	cursor: pointer;
}

.pagination {
	margin-top: 15px;
	text-align: center;
}

.pagination button {
	padding: 5px 10px;
	margin: 0 3px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
}

.pagination .active {
	background: #0066ff;
	color: #fff;
	border-color: #0066ff;
}

.stats-section {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.stat-card {
	padding: 15px;
	border-radius: 8px;
	color: #fff;
	text-align: center;
	font-size: 14px;
}

.stat-number {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 5px;
}

.star.filled {
	color: #ffc107;
}

.star.outlined {
	color: #888;
}

/* ////////////////////////////// view section ////////////////////////////// */
.view-section {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	max-width: 800px;
	margin: 0 auto;
}

.view-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 10px;
}

.view-meta {
	font-size: 14px;
	color: #777;
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.view-content {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 20px;
}

.view-content-text {
	white-space: pre-line;
}

.view-attachments h4 {
	font-size: 16px;
	margin-bottom: 10px;
}

.view-attachments ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.view-attachments li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f9f9f9;
	transition: background 0.2s;
}

.view-attachments li:hover {
	background: #eef4ff;
}

.file-icon {
	margin-right: 8px;
	font-size: 18px;
}

.file-name {
	flex-grow: 1;
	font-size: 15px;
	color: #333;
}

.download-btn {
	padding: 6px 12px;
	background: #0066ff;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	transition: background 0.2s;
}

.download-btn:hover {
	background: #244EBE;
}

.view-buttons {
	margin-top: 30px;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.view-buttons button {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.view-like {
	text-align: right;
	margin: 20px 0;
}

.btn-like {
	background: #ccc;
	color: #fff;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.btn-like.liked {
	background: #0d6efd;
}

.btn-like:hover {
	opacity: 0.9;
}

.btn-back {
	background: #ccc;
	color: #333;
}

.btn-edit {
	background: #007bff;
	color: #fff;
}

.btn-delete {
	background: #dc3545;
	color: #fff;
}

/* ////////////////////////////// update section ////////////////////////////// */
.update-section {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	max-width: 800px;
	margin: 0 auto;
}

.update-section h2 {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 20px;
}

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

.update-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.update-group input[type="text"], .update-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.update-group-inline {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.update-group-inline label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.update-group-inline input[type="text"] {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	width: 100%;
	background: #f5f5f5;
}

.attachment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 10px 0;
}

.attachment-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 8px;
}

.file-name {
	font-size: 14px;
	color: #333;
}

.btn-delete-file {
	background: #dc3545;
	color: #fff;
	border: none;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
}

.checkbox-container {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	gap: 10px;
}

.styled-checkbox {
	width: 20px;
	height: 20px;
	accent-color: #28a745;
	cursor: pointer;
}

.update-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 30px;
}

.btn-save {
	background: #28a745;
	color: #fff;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.btn-cancel {
	background: #ccc;
	color: #333;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.combobox-container {
	position: relative;
	width: 250px;
}

.combobox-container select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: #333;
	appearance: none; /* 기본 화살표 제거 */
	outline: none;
	cursor: pointer;
	transition: border 0.3s, box-shadow 0.3s;
}

.combobox-container select:hover {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.combobox-container::after {
	content: "▼";
	font-size: 13px;
	color: #555;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

/* ////////////////////////////// common section ////////////////////////////// */
.blue {
	background: #007bff;
}

.yellow {
	background: #ffc107;
	color: #333;
}

.green {
	background: #28a745;
}

.red {
	background: #dc3545;
}