/* 기본 스타일 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif; /* 구글 폰트 적용 예정 */
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 40px 20px;
}

/* 중앙 정렬 컨테이너 */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 제목 및 헤더 스타일 */
h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-weight: 500;
}

p.intro-text {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 유틸리티 클래스 */
.hidden { display: none !important; }
.pull-right { float: right; }
.clearfix::after { content: ""; clear: both; display: table; }

/* 게시판 테이블 스타일 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95em;
}

.board-table thead th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    border-bottom: 2px solid #e1e8ed;
    text-align: left;
}

.board-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eaeef1;
    cursor: pointer;
    color: #555;
}

.board-table tbody tr:hover td {
    background-color: #fbfdff;
    color: #3498db; /* 호버 시 제목 색상 변경 */
}

/* 테이블 컬럼 너비 조정 */
.col-num { width: 10%; text-align: center; }
.col-date { width: 20%; text-align: center; }
.board-table tbody td.col-num, 
.board-table tbody td.col-date { color: #888; text-align: center; }


/* 입력 폼 스타일 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    resize: vertical; /* 세로 크기 조절만 허용 */
}

/* 본문 보기 스타일 */
.view-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.view-meta {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.content-box {
    padding: 20px 0;
    font-size: 1.05em;
    color: #444;
    white-space: pre-wrap; /* 줄바꿈 유지 */
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}
.btn-danger:hover {
    background-color: #c0392b;
}