.customer-container {
    padding: 100px 0px;
    font-family: 'Pretendard', sans-serif;
}

.write-btn {
    display: block;
    width: fit-content;
    margin-top: 20px;
    margin-left: auto;
    padding: 8px 15px;
    border-radius: 4px;
    background: var(--color-primary);
    color: #fff;
}


.board-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin: 40px auto;
}

.board-table thead {
    background: #f2f2f2;
}

.board-table th,
.board-table td {
    height: 60px;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.board-table .th1 {
    width: 10%;
}

.board-table .th2 {
    width: 60%;
}

.board-table .th2 a {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.board-table .th3 {
    width: 10%;
}

.board-table .th4 {
    width: 10%;
}

.board-table .th5 {
    width: 10%;
}

.board-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1px;
}

.board-table a {
    color: #232323;
    font-weight: 500;
    transition: color 0.2s;
}

.board-table a:hover {
    color: var(--color-primary);
}

.table-title {
    text-align: start !important;
}

/* 공지 */
.table-num .marked {
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

@media screen and (max-width:480px) {    

    .board-table {
        width: 90%;
        font-size: 14px;
    }
    .board-table .th1,
    .board-table .th3,
    .board-table .th5 {
        display: none;
    }
    .board-table .th2 {
        width: 60%;
    }
    .board-table .th4 {
        width: 40%;
    }


    .board-table tr td:first-child,
    .board-table tr td:nth-child(3),
    .board-table tr td:nth-child(5) {
        display: none;
    }
}

/* view page css */

.view-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    margin-top: 30px;
    font-family: 'Pretendard', sans-serif;
}

.view-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.view-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.view-content {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
    color: #333;
}

.view-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 40px;
    text-align: right;
}

.view-buttons .btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--color-primary);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s;
}

.view-buttons .btn:hover {
    background: var(--color-secondary);
}

.edit-btn.btn {
    background: var(--color-primary);
}
.edit-btn.btn:hover {
    background: var(--color-secondary);
}
.delete-btn.btn {
    background: #cc0f0f;
}
.delete-btn.btn:hover {
    background: #9c0a0a;
}

.file-download .btn {
    padding: 10px 25px;
    background: #f1f1f1;
    border-radius: 5px;
    margin-right: 10px;
}

@media screen and (max-width:480px) {
    .view-buttons {
        flex-direction: row;
        justify-content: start;
    }
    .file-download {
        margin-top: 30px;
    }
}

/* comment css */

.comment-section {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #ccc;
}

.comment-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.comment-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.comment-header {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.comment-body {
    font-size: 16px;
    line-height: 1.5;
    color: #232323;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    resize: vertical;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-form .btn {
    align-self: flex-end;
    padding: 10px 25px;
    background: var(--color-primary);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.comment-form .btn:hover {
    background: var(--color-secondary);
}

.search-box {
    margin: 40px auto;
    text-align: center;
}

.search-form {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.search-form select,
.search-form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form .btn {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.search-form .btn:hover {
    background: var(--color-secondary);
}

@media screen and (max-width:480px) {
    .search-form input[type="text"] {
        width: 50%;
    }
}

/* customer_write */
/* 고객 글쓰기 폼 */
.customer-form {
    margin-top: 40px;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.customer-form .form-row {
    display: flex;
    flex-direction: column;
}

.customer-form label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.customer-form input[type="password"],
.customer-form input[type="text"],
.customer-form textarea,
.customer-form input[type="file"] {
    font-size: 16px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.customer-form textarea {
    height: 180px;
    resize: vertical;
}

.customer-form input[type="file"]::file-selector-button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.customer-form input[type="file"]::file-selector-button:hover {
    background: var(--color-secondary);
}

/* 버튼 영역 */
.customer-form .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.customer-form .btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.customer-form .btn-submit {
    background: var(--color-primary);
    color: #fff;
}

.customer-form .btn-cancel {
    background: #ccc;
    color: #222;
}

.customer-form .btn-submit:hover {
    background: var(--color-secondary);
}

.customer-form .btn-cancel:hover {
    background: #bbb;
}

/* customer password */
.customer-password {
    max-width: 600px;
    margin: 60px auto;
}

@media screen and (max-width: 480px) {
    .customer-password {
        width: 90%;
    }
}

/* 모바일 반응형 */
@media screen and (max-width: 480px) {
    .customer-form {
        padding: 20px;
        gap: 20px;
    }

    .customer-form input,
    .customer-form textarea {
        font-size: 15px;
    }

    .customer-form .btn {
        font-size: 15px;
        padding: 8px 18px;
    }
}



@media screen and (max-width:480px) {
    .customer-container {
        padding: 70px 0px;
    }

    .title-container {
        font-size: 24px;
    }

    /* viewbox */
    .view-box {
        width: 95%;
    }

    .view-title {
        font-size: 20px;
    }

    .view-content {
        font-size: 15px;
    }

    .comment-section {
        width: 95%;
    }

}