/* 고객센터 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 고객센터 메인 페이지 */
.customer-center-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.customer-center-title {
    font-size: 2rem;
    font-weight: bold;
    color: #FF8A00;
    margin-bottom: 16px;
}

.customer-center-desc {
    color: #555;
    margin-bottom: 24px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.category-item {
    flex: 1 1 45%;
    background: #FFF8F0;
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #FF8A00;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.category-item:hover {
    background: #FFECB3;
}

.board-link {
    display: block;
    width: 100%;
    margin: 0 auto 18px auto;
    padding: 12px 0;
    background: #FF8A00;
    color: #fff;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.board-link:hover {
    background: #FFB300;
}

.login-notice {
    color: #d32f2f;
    margin-bottom: 18px;
}

/* 게시판 스타일 */
.board-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
}

.board-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #FF8A00;
    margin-bottom: 18px;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.board-info {
    color: #666;
    font-size: 0.9rem;
}

.category-filter {
    margin-bottom: 18px;
}

.category-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #FF8A00;
    background: #fff;
    color: #FF8A00;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.category-btn.active, .category-btn:hover {
    background: #FF8A00;
    color: #fff;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.board-table th, .board-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.board-table th {
    background: #FFF8F0;
    color: #FF8A00;
}

.board-table td.title {
    text-align: left;
}

.board-table td.title a {
    color: #333;
    text-decoration: none;
}

.board-table td.title a:hover {
    color: #FF8A00;
}

.board-table td.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
}

.status-waiting {
    color: #d32f2f;
    font-weight: bold;
}

.status-done {
    color: #388e3c;
    font-weight: bold;
}

.write-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #FF8A00;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
}

.write-btn:hover {
    background: #FFB300;
}

/* 글쓰기 폼 스타일 */
.write-container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
}

.write-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF8A00;
    margin-bottom: 18px;
}

.write-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

.write-form select, .write-form input, .write-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 1rem;
}

.write-form textarea {
    min-height: 120px;
    resize: vertical;
}

.write-form input:focus, .write-form textarea:focus, .write-form select:focus {
    outline: none;
    border-color: #FF8A00;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.1);
}

.error-msg {
    color: #d32f2f;
    margin-bottom: 12px;
    padding: 8px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 관리자 페이지 스타일 */
.admin-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
}

.admin-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #FF8A00;
    margin-bottom: 18px;
}

.filter-section {
    margin-bottom: 18px;
}

.status-filter {
    margin-bottom: 12px;
}

.status-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #FF8A00;
    background: #fff;
    color: #FF8A00;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.status-btn.active, .status-btn:hover {
    background: #FF8A00;
    color: #fff;
}

.admin-info {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    color: #666;
    font-size: 0.9rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.admin-table th, .admin-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

.admin-table th {
    background: #FFF8F0;
    color: #FF8A00;
}

.admin-table td.title {
    text-align: left;
}

.admin-table td.title .post-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.admin-table td.title .post-content {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 8px;
    font-size: 1rem;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #FF8A00;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.1);
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.reply-btn {
    padding: 6px 18px;
    background: #FF8A00;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.reply-btn:hover {
    background: #FFB300;
}

.reply-info {
    font-size: 0.8rem;
    color: #666;
}

/* 글 상세보기 스타일 */
.post-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px;
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF8A00;
    margin-bottom: 16px;
}

.post-info {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.post-info span {
    margin-right: 20px;
    color: #666;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-wrap;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 4px solid #FF8A00;
}

.admin-reply {
    background: #FFF8F0;
    border-left: 4px solid #FF8A00;
    padding: 16px;
    margin-top: 20px;
    border-radius: 6px;
}

.admin-reply h4 {
    color: #FF8A00;
    margin-bottom: 8px;
}

.reply-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #FF8A00;
    background: #fff;
    color: #FF8A00;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: #FF8A00;
    color: #fff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .customer-center-container,
    .board-container,
    .write-container,
    .admin-container,
    .post-container {
        margin: 20px;
        padding: 16px;
    }
    
    .category-list {
        flex-direction: column;
    }
    
    .category-item {
        flex: none;
    }
    
    .board-table {
        font-size: 0.9rem;
    }
    
    .board-table th, .board-table td {
        padding: 6px;
    }
    
    .board-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .write-btn,
    .button-group .reply-btn {
        width: 100%;
        text-align: center;
    }
    
    .admin-table td.title .post-content {
        max-height: 60px;
    }
    
    .reply-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
