* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.board-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 헤더 */
.board-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.board-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #667eea;
}

.board-header p {
    color: #666;
    margin-bottom: 15px;
}

.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #dee2e6;
}

/* 액션 바 */
.board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

.search-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #5568d3;
}

.btn-write {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-write:hover {
    background: #5568d3;
}

/* 게시글 목록 */
.board-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.board-list table {
    width: 100%;
    border-collapse: collapse;
}

.board-list th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.board-list td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.board-list tr:hover {
    background: #f8f9fa;
}

.notice-row {
    background: #fff9e6 !important;
}

.notice-row:hover {
    background: #fff3cd !important;
}

.title-cell a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.title-cell a:hover {
    color: #667eea;
}

.comment-count {
    color: #667eea;
    font-weight: 600;
    font-size: 12px;
    margin-left: 5px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e9ecef;
}

.pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .board-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .board-header {
        padding: 20px;
    }

    .board-header h1 {
        font-size: 22px;
    }

    .board-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        flex: 1;
    }

    .search-form input {
        width: 100%;
    }

    .board-list {
        overflow-x: auto;
    }

    .board-list table {
        min-width: 600px;
    }

    .board-list th,
    .board-list td {
        padding: 10px;
        font-size: 13px;
    }
}
