/* 게시판 관리 버튼 */
.board-actions {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary, .btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #8B4513;
    color: white;
}

.btn-primary:hover {
    background-color: #6d3410;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-edit {
    background-color: #4CAF50;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    margin-left: 8px;
}

.btn-edit:hover {
    background-color: #45a049;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
}

.btn-delete:hover {
    background-color: #da190b;
}

/* 게시글 목록 액션 */
.list-actions {
    margin-left: 10px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #8B4513;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 28px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #8B4513;
}

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

/* 클릭 가능한 제목 */
.list-title.clickable {
    cursor: pointer;
    transition: color 0.3s;
}

.list-title.clickable:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* 텍스트 영역 */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

/* 상세보기 모달 */
.modal-content-large {
    max-width: 700px;
}

.view-content {
    margin: 20px 0;
}

.view-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.view-text-content {
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 반응형 */
@media (max-width: 768px) {
    .board-actions {
        flex-direction: column;
        gap: 5px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content-large {
        max-width: 95%;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
}
