/* 컴팩트 게시판 스타일 */
.content-main{display:block !important;flex:none !important;gap:0 !important;}
.board-container{max-width:1200px;margin:0 auto;padding:12px;background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.06);}

/* 헤더 */
.board-header{display:block;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e9ecef;}
.board-title-section{margin-bottom:8px;}
.board-title{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 4px 0;line-height:1.2;}
.board-title-html{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 4px 0;line-height:1.2;}
.board-info{display:flex;align-items:center;gap:8px;}
.total-count{font-size:12px;color:#6b7280;background:#f8f9fa;padding:2px 8px;border-radius:12px;font-weight:500;}
.board-actions{display:flex;justify-content:flex-end;gap:8px;}

/* 버튼 */
.btn-write{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;text-decoration:none;border-radius:6px;font-weight:600;font-size:13px;transition:all 0.2s ease;box-shadow:0 1px 4px rgba(102,126,234,0.3);}
.btn-write:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(102,126,234,0.4);color:#fff;text-decoration:none;}
.icon-write{width:14px;height:14px;background:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIgMTFIMTJWMTAuNUgyVjExWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEyIDMuNUg3VjEwLjVIMTJWMi41WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIgMy41SDYuNVYxMC41SDJWMi41WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==') no-repeat center;background-size:contain;}

/* 검색 도구 */
.board-tools{margin-bottom:12px;padding:12px;background:#f8f9fa;border-radius:6px;border:1px solid #e9ecef;}
.search-form{display:flex;gap:8px;align-items:end;}
.search-form .form-group{display:flex;flex-direction:column;gap:4px;}
.search-form .form-select,.search-form .form-input{padding:8px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;background:#fff;transition:all 0.2s ease;}
.search-form .form-select:focus,.search-form .form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px rgba(102,126,234,0.1);}
.search-group{position:relative;flex:1;}
.form-input{padding-right:40px;}
.btn-search{position:absolute;right:3px;top:3px;width:32px;height:32px;background:#667eea;border:none;border-radius:3px;color:#fff;cursor:pointer;transition:all 0.2s ease;}
.btn-search:hover{background:#5a67d8;}
.icon-search{width:14px;height:14px;background:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDguNUwxMS41IDEwTDEwIDExLjVMOC41IDEwTDEwIDguNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=') no-repeat center;background-size:contain;}

/* 게시글 목록 */
.board-list{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e9ecef;}
.list-header{display:grid;grid-template-columns:60px 1fr 100px 80px;background:#f8f9fa;border-bottom:1px solid #e9ecef;font-weight:600;color:#374151;font-size:13px;}
.list-header > div{padding:10px 12px;border-right:1px solid #e9ecef;}
.list-header > div:last-child{border-right:none;}
.list-body{min-height:300px;}
.list-item{display:grid;grid-template-columns:60px 1fr 100px 80px;border-bottom:1px solid #f0f2f5;transition:all 0.2s ease;cursor:pointer;}
.list-item:hover{background:#f8f9fa;}
.list-item:last-child{border-bottom:none;}
.list-item > div{padding:10px 12px;border-right:1px solid #f0f2f5;display:flex;align-items:center;}
.list-item > div:last-child{border-right:none;}

/* 공지사항 */
.notice-item{background:#fff3cd;border-left:3px solid #ffc107;}
.notice-item:hover{background:#ffeaa7;}

/* 컬럼 스타일 */
.col-no{justify-content:center;font-weight:500;}
.post-number{color:#6b7280;font-size:12px;}
.badge-notice{background:#dc3545;color:#fff;padding:2px 6px;border-radius:3px;font-size:11px;font-weight:600;}
.col-subject{justify-content:flex-start;}
.subject-content{display:flex;align-items:center;gap:6px;width:100%;}
.reply-icon{color:#9ca3af;font-size:14px;font-weight:bold;}
.subject-link{color:#1a1a1a;text-decoration:none;font-weight:500;transition:color 0.2s ease;font-size:13px;}
.subject-link:hover{color:#667eea;text-decoration:none;}
.comment-badge{background:#e5e7eb;color:#374151;padding:1px 4px;border-radius:8px;font-size:10px;font-weight:500;}
.secret-badge{color:#6b7280;font-size:11px;}
.col-name{justify-content:center;}
.author-name{color:#374151;font-size:12px;}
.col-date{justify-content:center;}
.date-text{color:#6b7280;font-size:11px;}

/* 빈 상태 */
.empty-state{grid-column:1/-1;text-align:center;padding:40px 20px;color:#6b7280;}
.empty-icon{font-size:32px;margin-bottom:12px;}
.empty-text{font-size:14px;font-weight:500;}

/* 페이지네이션 */
.pagination-wrapper{margin-top:20px;text-align:center;}
.pagination{display:inline-flex;gap:3px;align-items:center;}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d1d5db;border-radius:4px;text-decoration:none;color:#374151;font-weight:500;transition:all 0.2s ease;font-size:12px;}
.pagination a:hover{background:#f3f4f6;border-color:#9ca3af;color:#1a1a1a;}
.pagination .active{background:#667eea;border-color:#667eea;color:#fff;}

/* 반응형 디자인 */
@media (max-width:768px) {
    .board-container{padding:8px;margin:0 8px;}
    .board-header{flex-direction:column;gap:8px;align-items:stretch;}
    .board-title{font-size:18px;}
    .board-title-html{font-size:18px;}
    .search-form{flex-direction:column;gap:8px;}
    .list-header,.list-item{grid-template-columns:50px 1fr 70px 60px;}
    .list-header > div,.list-item > div{padding:8px 10px;}
    .btn-write{width:100%;justify-content:center;}
    .board-tools{padding:8px;}
}

@media (max-width:480px) {
    .board-container{padding:6px;margin:0 4px;}
    .list-header,.list-item{grid-template-columns:40px 1fr 60px 50px;}
    .list-header > div,.list-item > div{padding:6px 8px;font-size:12px;}
    .board-title{font-size:16px;}
    .board-title-html{font-size:16px;}
}

/* 글쓰기 폼 스타일 */
.post-form{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e9ecef;padding:30px;}
.form-group{margin-bottom:20px;}
.form-label{display:block;font-weight:600;color:#1a1a1a;margin-bottom:8px;font-size:14px;}
.required{color:#dc3545;}
.form-input,.form-select,.form-textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:14px;background:#fff;transition:border-color 0.2s ease;}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px rgba(102,126,234,0.1);}
.form-input.is-invalid,.form-select.is-invalid,.form-textarea.is-invalid{border-color:#dc3545;box-shadow:0 0 0 2px rgba(220,53,69,0.1);}
.form-input.is-invalid:focus,.form-select.is-invalid:focus,.form-textarea.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 2px rgba(220,53,69,0.2);}
.form-textarea{resize:vertical;font-family:inherit;line-height:1.5;}
.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;}
.checkbox-text{font-size:14px;color:#374151;}
.error-message{color:#dc3545;font-size:12px;margin-top:4px;}
.alert{padding:12px 16px;margin-bottom:20px;border:1px solid transparent;border-radius:4px;}
.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb;}
.alert ul{margin:0;padding-left:20px;}
.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:30px;padding-top:20px;border-top:1px solid #e9ecef;}
.btn-submit{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background 0.2s ease;}
.btn-submit:hover{background:#5a67d8;}
.btn-cancel{padding:10px 20px;background:#6c757d;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;font-weight:500;transition:background 0.2s ease;}
.btn-cancel:hover{background:#5a6268;color:#fff;text-decoration:none;}
.btn-list{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#6c757d;color:#fff;text-decoration:none;border-radius:6px;font-weight:600;font-size:13px;transition:all 0.2s ease;}
.btn-list:hover{background:#5a6268;color:#fff;text-decoration:none;}
.icon-list{width:14px;height:14px;background:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIgNEgxMlY2SDJWNloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yIDhIMTJWMTAuNUgyVjhaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMiAxMkgxMlYxNEgyVjEyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==') no-repeat center;background-size:contain;}
.form-row{display:flex;gap:20px;margin-bottom:20px;}
.form-row .form-group{flex:1;margin-bottom:0;}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .form-row{flex-direction:column;gap:0;}
    .form-row .form-group{margin-bottom:20px;}
}

/* 게시글 상세 페이지 스타일 */
.post-detail{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e9ecef;margin-bottom:20px;}
.post-header{padding:20px;border-bottom:1px solid #e9ecef;background:#f8f9fa;}
.post-title{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.post-title h2{font-size:20px;font-weight:600;color:#1a1a1a;margin:0;}
.post-meta{display:flex;gap:20px;font-size:13px;color:#6b7280;}
.meta-item{display:flex;gap:6px;}
.meta-label{font-weight:500;}
.post-content{padding:20px;line-height:1.6;color:#333;min-height:100px;}
.post-actions{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-top:1px solid #e9ecef;background:#f8f9fa;}
.post-actions .action-left,.post-actions .action-right{display:flex;gap:8px;}
.post-actions .btn-secondary{padding:6px 12px;border-radius:4px;text-decoration:none;font-size:13px;font-weight:500;transition:all 0.2s ease;background:#6c757d;color:#fff;border:1px solid #6c757d;}
.post-actions .btn-secondary:hover{background:#5a6268;color:#fff;text-decoration:none;}
.post-actions .btn-edit{padding:6px 12px;border-radius:4px;text-decoration:none;font-size:13px;font-weight:500;transition:all 0.2s ease;background:#28a745;color:#fff;border:1px solid #28a745;}
.post-actions .btn-edit:hover{background:#218838;color:#fff;text-decoration:none;}
.post-actions .btn-delete{padding:6px 12px;border-radius:4px;text-decoration:none;font-size:13px;font-weight:500;transition:all 0.2s ease;background:#dc3545;color:#fff;border:1px solid #dc3545;cursor:pointer;}
.post-actions .btn-delete:hover{background:#c82333;}

/* 댓글 섹션 스타일 */
.comments-section{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e9ecef;}
.comments-header{padding:15px 20px;background:#f8f9fa;border-bottom:1px solid #e9ecef;}
.comments-header h3{font-size:16px;font-weight:600;color:#1a1a1a;margin:0;}
.comments-list{padding:20px;}
.comment-item{padding:15px 0;border-bottom:1px solid #f0f2f5;}
.comment-item:last-child{border-bottom:none;}
.comment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.comment-author{font-weight:600;color:#1a1a1a;font-size:14px;}
.comment-date{font-size:12px;color:#6b7280;}
.comment-content{color:#333;line-height:1.5;font-size:14px;}
.no-comments{padding:40px;text-align:center;color:#6b7280;}
.comment-form{padding:20px;border-top:1px solid #e9ecef;background:#f8f9fa;}
.comment-form h4{font-size:14px;font-weight:600;color:#1a1a1a;margin:0 0 15px 0;}
.comment-form .form-textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;background:#fff;resize:vertical;font-family:inherit;}
.comment-form .form-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px rgba(102,126,234,0.1);}
.btn-comment{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s ease;}
.btn-comment:hover{background:#5a67d8;}

/* 접근 거부 메시지 */
.access-denied-message{text-align:center;padding:60px 20px;min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;}
.access-denied-icon{width:80px;height:80px;margin:0 auto 24px;background:#fee2e2;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#dc3545;font-size:40px;}
.access-denied-title{font-size:24px;font-weight:600;color:#1a1a1a;margin:0 0 16px 0;}
.access-denied-text{font-size:15px;color:#6b7280;line-height:1.6;margin:0 0 32px 0;max-width:500px;}
.access-denied-actions{display:flex;gap:12px;justify-content:center;}
.btn-home{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;background:#667eea;color:#fff;text-decoration:none;border-radius:6px;font-weight:500;font-size:14px;transition:all 0.2s ease;}
.btn-home:hover{background:#5a67d8;color:#fff;text-decoration:none;transform:translateY(-1px);box-shadow:0 2px 8px rgba(102,126,234,0.3);}
.icon-home{width:16px;height:16px;background:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMkwxIDhIMlYxNEg2VjEwSDEwVjE0SDE0VjhIMTVMOCAyWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==') no-repeat center;background-size:contain;}