/* 게시판 공통 스타일 */
.board-container {
	background: #fff;
	border-radius: 12px;
	margin: 30px 0;
	padding: 0 20px;
}

/* 검색 영역 */
.search-area {
	margin: 30px 0;
}

.search-box {
	display: flex;
	max-width: 500px;
	margin: 0 auto;
	gap: 10px;
}

.search-input {
	flex: 1;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s;
}

/* 게시판 목록 테이블 */
.board-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.board-table th {
	padding: 15px;
	font-weight: 600;
	color: #495057;
	border-bottom: 2px solid #019ac4;
	text-align: center;
}

.board-table td {
	padding: 15px;
	border-bottom: 1px solid #e9ecef;
	text-align: center;
	color: #495057;
}

.board-table tr:hover {
	background-color: #f8f9fa;
}

.board-table .num {
	width: 80px;
}

.board-table .title {
	text-align: left;
}

.board-table .category {
	width: 180px;
}

.board-table .title a {
	color: #212529;
	text-decoration: none;
	transition: color 0.2s;
}

.board-table .title a:hover {
	color: #858b91;
}

.board-table .writer {
	width: 120px;
}

.board-table .date {
	width: 120px;
}

.board-table .views {
	width: 100px;
}

/* 정렬 화살표 스타일 */
.board-table th .sortIcon {
	justify-content: flex-start;
}
/* 정렬 화살표 스타일 */
.sortIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	user-select: none;
}

.sort-arrow {
	display: inline-flex;
	flex-direction: column;
	margin-left: 5px;
	transition: opacity 0.2s ease;
}

.sort-arrow.active {
	opacity: 1;
}

.arrow-up, .arrow-down {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	margin: 1px 0;
}

.arrow-up {
	border-bottom: 6px solid #b7b7b7;
}

.arrow-down {
	border-top: 6px solid #b7b7b7;
}

.arrow-up.active {
	border-bottom-color: #019ac4 !important;
}

.arrow-down.active {
	border-top-color: #019ac4 !important;
}

.sortable:hover .sort-arrow.active {
	opacity: 1;
}
/* 페이지네이션 */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 30px 0;
}

.page-numbers {
	display: flex;
	gap: 5px;
}

.page-btn, .page-numbers button {
	padding: 8px 16px;
	border: 1px solid #dee2e6;
	background: #fff;
	color: #495057;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.page-btn:hover:not(:disabled), .page-numbers button:hover:not(.active)
	{
	background: #e9ecef;
	border-color: #ced4da;
}

.page-btn:disabled {
	background: #f8f9fa;
	color: #adb5bd;
	cursor: not-allowed;
}

/* 게시글 상세보기 */
.board-view {
	max-width: 100%;
	margin: 0 auto;
}

.board-header {
	padding-bottom: 20px;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 30px;
}

.board-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: #212529;
	margin-bottom: 15px;
}

.board-info {
	display: flex;
	gap: 20px;
	color: #6c757d;
	font-size: 0.9rem;
}

.board-content {
	min-height: 300px;
	line-height: 1.8;
	color: #495057;
	margin-bottom: 30px;
	white-space: pre-wrap;
}

.board-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.board-buttons button {
	padding: 10px 24px;
	border: none;
	border-radius: 4px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s;
}

.list-btn {
	background: #e9ecef;
	color: #495057;
}

.list-btn:hover {
	background: #dee2e6;
}

.edit-buttons {
	display: flex;
	gap: 10px;
}

.edit-btn, .btn-primary {
	background: #008eff;
	border: 1px solid #008eff;
	color: #fff;
}

.edit-btn:hover {
	background: #1484dd;
}

.delete-btn {
	background: #6c757d;
	border: 1px solid #6c757d;
	color: #fff;
}

.delete-btn:hover {
	background: #000000;
}

.write-btn {
	background: #373737;
	color: #fff;
}

.write-btn:hover {
	background: #505050;
	color: #fff;
}
/* 게시글 작성/수정 폼 */
.board-write {
	max-width: 100%;
	margin: 0 auto;
}

.board-write>form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.form-group label {
	display: block;
	font-weight: 600;
	color: #495057;
}

.form-group input[type="text"], .form-group input[type="password"] {
	padding: 12px;
	border: 2px solid #e9ecef;
	border-radius: 6px;
	font-size: 1rem;
	transition: all 0.2s;
}

input[type="text"]:focus:not(.search-input), input[type="email"]:focus:not(.search-input),
	input[type="password"]:focus:not(.search-input), select:focus {
	border-color: #007bff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
	width: 100%;
	padding: 15px;
	border: 2px solid #e9ecef;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.6;
	resize: vertical;
	transition: all 0.2s;
}

.form-group textarea:focus {
	border-color: #007bff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-hint {
	margin-top: 5px;
	font-size: 0.85rem;
	color: #FF5722;
	font-weight: 600;
}

.submit-buttons {
	display: flex;
	gap: 10px;
}

.submit-btn {
	background: #019ac4;
	color: #fff;
}

.submit-btn:hover {
	background: #0080a3;
}

.cancel-btn {
	background: #6c757d;
	color: #fff;
}

.cancel-btn:hover {
	background: #5a6268;
}

/* 검색 결과 없음 메시지 */
.no-data-message {
	text-align: center;
	padding: 50px 0;
	color: #6c757d;
}

.no-results-icon {
	font-size: 3rem;
	color: #dee2e6;
	margin-bottom: 15px;
}

.no-results-sub {
	font-size: 0.9rem;
	color: #adb5bd;
	margin-top: 5px;
}

.file-upload-container {
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	background-color: #f7f9fa;
}

.file-upload-area {
	border: 2px dashed #ccc;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	background-color: white;
	transition: all 0.3s ease;
	cursor: pointer;
}

.file-upload-area:hover {
	border-color: #007bff;
	background-color: #f8f9fa;
}

.file-upload-area.dragover {
	border-color: #007bff;
	background-color: #e3f2fd;
}

.file-upload-icon {
	font-size: 48px;
	color: #6c757d;
	margin-bottom: 15px;
}

.file-upload-text {
	color: #6c757d;
	margin-bottom: 10px;
}

.file-upload-hint {
	font-size: 12px;
	color: #9da0a4;
}

.file-input {
	display: none;
}

.file-list {
	margin-top: 15px;
}

.file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	margin-bottom: 5px;
	background-color: white;
}

.file-info {
	display: flex;
	align-items: center;
	flex: 1;
}

.file-icon {
	margin-right: 10px;
	color: #6c757d;
}

.file-name {
	margin-right: 10px;
	font-weight: 500;
}

.file-size {
	font-size: 12px;
	color: #6c757d;
}

.file-remove {
	background: none;
	border: none;
	color: #dc3545;
	cursor: pointer;
	font-size: 16px;
	padding: 5px;
}

.file-remove:hover {
	color: #c82333;
}

#clearAllBtn {
	transition: background 0.3s ease;
	background: red;
	color: #fff;
	font-weight: 500;
}

#clearAllBtn:hover {
	background: #d32f2f;
}

/* 기기 선택 탭 */
.device-tabs {
	margin-bottom: 30px;
	border-bottom: 2px solid #f0f0f0;
}

.device-tab-list {
	display: flex;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.device-tab-list::-webkit-scrollbar {
	display: none;
}

.device-tab-btn {
	padding: 15px 25px;
	border: none;
	background: transparent;
	color: #666;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	white-space: nowrap;
	min-width: 80px;
}

.device-tab-btn i {
	margin-right: 5px;
}

.device-tab-btn:hover {
	color: #007bff;
}

.device-tab-btn.active {
	color: #007bff;
	border-bottom-color: #007bff;
	background: rgb(211 211 211/ 5%);
}

/* 카테고리 탭 */
.category-tabs {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 15px;
}

.category-tab-list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.category-tab-btn {
	padding: 10px 20px;
	border: 2px solid #e0e0e0;
	background: white;
	color: #666;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	border-radius: 25px;
	transition: all 0.3s ease;
}

.category-tab-btn:hover {
	border-color: #007bff;
	color: #007bff;
}

.category-tab-btn.active {
	background: #407acf;
	border-color: #407acf;
	color: white;
	box-shadow: 0 4px 15px rgb(111 111 111/ 30%);
}

/* 검색 영역 */
.search-area {
	margin-bottom: 0px;
}

.search-box {
	display: flex;
	max-width: 500px;
	margin: 0 auto;
	background: white;
	border: 2px solid #aec8e1;
	border-radius: 50px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	border-color: #007bff;
	box-shadow: 0 4px 20px rgba(108, 99, 255, 0.2);
}

.search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	padding: 10px 20px;
	border-radius: 50px;
}

.search-btn {
	padding: 15px 20px;
	border: none;
	background: #007bff;
	color: white;
	cursor: pointer;
	transition: background 0.3s ease;
}

.search-btn:hover {
	background: #5a52d5;
}

/* Tabulator 커스텀 스타일 */
.tabulator {
	border-radius: 0px;
	overflow: hidden;
	box-shadow: unset;
	border: none !important;
	background: transparent;
}

.tabulator .tabulator-header {
	background: transparent;
	color: white;
	font-weight: 600;
	border-top: none !important;
	border-bottom: 2px solid #c1d4e7 !important;
}

.tabulator .tabulator-header .tabulator-col {
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	background: #fff !important;
}

.tabulator .tabulator-footer {
	background-color: #fff !important;
	border-top: 1px solid #dee2e6 !important;
}

.tabulator .tabulator-row.tabulator-row-even {
	background-color: #f6faff;
}

.tabulator .tabulator-row.tabulator-selected {
	background-color: #dbeaff !important;
}

.tabulator .tabulator-footer .tabulator-page.active {
	background-color: #007bff !important;
	border-color: #007bff !important;
}

.tabulator-cell {
	place-content: center;
}

.category-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	color: white;
}

.category-tag.hardware {
	background: #ff6b6b;
}

.category-tag.software {
	background: #4ecdc4;
}

.category-tag.network {
	background: #45b7d1;
}

.category-tag.display {
	background: #96ceb4;
}

.category-tag.audio {
	background: #feca57;
}

.category-tag.battery {
	background: #ff9ff3;
}

.category-tag.system {
	background: #54a0ff;
}

.category-tag.app {
	background: #5f27cd;
}

.category-tag.security {
	background: #00d2d3;
}

.category-tag.etc {
	background: #c44569;
}

.title-with-icon {
	display: flex;
	align-items: center;
	gap: 8px;
}

.file-icon {
	color: #007bff;
	font-size: 14px;
}

.no-data-message {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.no-data-message i {
	font-size: 4rem;
	color: #ddd;
	margin-bottom: 20px;
	display: block;
}

/* 단일 줄 ellipsis */
.title-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0; /* ← flex 아이템 줄어들게 */
}

.title-text {
	flex: 1 1 auto;
	min-width: 0; /* ← 줄바꿈 대신 줄어들 수 있게 */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tabulator .tabulator-footer .tabulator-paginator {
	margin: 20px 0;
}
/* Tabulator 셀 안에 있을 때 안전장치(권장) */
#solution-table .tabulator-cell .title-cell {
	min-width: 0;
}

#solution-table .tabulator-cell .title-text {
	min-width: 0;
}

.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents
	{
	font-weight: 500 !important;
	font-size: 1.5rem !important;
	color: #6f6f6f !important;
}

.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents i
	{
	font-size: 3rem;
	padding-bottom: 20px;
}

.tabulator-footer-contents .tabulator-paginator>button.tabulator-page {
	margin: 0 5px;
}
/* 모바일 대응 */
@media ( max-width : 1199px) {
	.board-table th.writer, .board-table td.writer {
		display: none !important;
	}
	.board-table th.views, .board-table td.views {
		display: none !important;
	}
	.board-container {
		padding: 0px;
		margin: 20px 0;
	}
	.board-table th, .board-table td {
		padding: 15px 5px;
		font-size: 0.8rem;
	}
	.board-table .num {
		width: 40px;
		display: none;
	}
	.board-table .writer, .board-table .date {
		width: 90px;
	}
	.board-table .views {
		width: 80px;
	}
	.board-table .category {
		min-width: 80px;
		max-width: 100px;
		width: fit-content;
	}
	.board-title {
		font-size: 1.4rem;
	}
	.board-info {
		flex-direction: row;
		gap: 5px;
	}
	.board-buttons {
		flex-direction: column;
		gap: 10px;
	}
	.board-buttons button {
		width: 100%;
	}
	.edit-buttons {
		width: 100%;
	}
	.edit-buttons button {
		flex: 1;
	}
	.form-group input[type="text"], .form-group input[type="password"],
		.form-group textarea {
		font-size: 0.9rem;
	}
	.submit-buttons {
		flex-direction: column;
	}
	.submit-buttons button {
		width: 100%;
	}
	.device-tab-list {
		flex-wrap: wrap;
		justify-content: center;
	}
	.device-tab-btn {
		padding: 10px;
	}
}

@media ( max-width : 767px) {
	.board-info {
		flex-direction: Row;
		gap: 10px;
	}
	.board-info span.views {
		display: none;
	}
	.board-table th.views, .board-table td.views, .board-table th.writer,
		.board-table td.writer {
		display: none !important;
	}
	.category-item {
		min-width: 100px;
	}
	.category-nav {
		width: 35px;
		height: 35px;
	}
	.file-upload-icon {
		font-size: 30px;
	}
	.device-tab-btn {
		padding: 6px 8px;
		font-size: 0.9rem;
		min-width: 80px;
	}
	.category-tab-btn {
		padding: 4px 16px;
		font-size: 0.75rem;
	}
	.search-box {
		max-width: 100%;
	}

	/* 테이블 셀 패딩 더 줄이기 */
	.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell
		{
		font-size: 0.8rem;
		height: 40px;
	}
	.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title
		{
		font-size: 0.8rem
	}
	.tabulator .tabulator-header .tabulator-col {
		padding: 6px 4px;
		font-size: 10px;
	}

	/* 카테고리 태그 더 작게 */
	.category-tag {
		font-size: 0.7rem !important;
		padding: 1px 8px !important;
	}

	/* 제목 텍스트 더 작게 */
	.title-text {
		font-size: 12px;
	}
}

@media ( max-width : 767px) {
	.content-title p {
		margin: 0 !important;
	}
	.tabulator-paginator label {
		font-size: 0.7rem;
		margin-top: 10px;
	}
	.tabulator .tabulator-footer .tabulator-paginator {
		display: flex;
		flex-direction: column-reverse;
	}
	.tabulator .tabulator-footer .tabulator-pages {
		display: flex;
		justify-content: center;
	}
	.tabulator .tabulator-footer .tabulator-page-size {
		margin-top: 20px !important;
	}
	.tabulator-footer-contents .tabulator-paginator>button.tabulator-page {
		display: none;
	}
	.no-data-placeholder {
		font-size: 0.8rem;
	}
	.no-data-placeholder>i {
		font-size: 2.5rem;
	}
	.tabulator .tabulator-footer .tabulator-page {
		font-size: 0.7rem !important;
	}
}