/* CoreMemo Board Skin Styles */

/* 목록 */
#bo_list {
    margin: 0 auto;
}

#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

#bo_list_total {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn_bo_user {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn_bo_user .btn:hover {
    background: #e0e7ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.btn_bo_user .btn_b01.btn[title="글쓰기"] {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: transparent;
}

/* 카테고리 */
#bo_cate {
    margin-bottom: 16px;
}

#bo_cate_ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

#bo_cate_ul li a,
#bo_cate_ul li button {
    display: inline-block;
    padding: 5px 14px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

#bo_cate_ul li.active a,
#bo_cate_ul li.active button {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* 테이블 */
.tbl_head01.tbl_wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
}

.tbl_head01 caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.tbl_head01 thead tr {
    background: #f9fafb;
}

.tbl_head01 thead th {
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.tbl_head01 tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.tbl_head01 tbody tr:hover {
    background: #f5f3ff;
}

.tbl_head01 tbody tr.bo_notice {
    background: #fefce8;
}

.tbl_head01 tbody td {
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #374151;
    text-align: center;
    vertical-align: middle;
}

.tbl_head01 tbody td.td_subject {
    text-align: left;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbl_head01 tbody td.td_subject a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.tbl_head01 tbody td.td_subject a:hover {
    color: #4f46e5;
}

.tbl_head01 .bo_notice_icon {
    display: inline-block;
    padding: 2px 6px;
    background: #fbbf24;
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
}

.tbl_head01 .new_icon {
    color: #ef4444;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* 페이지네이션 */
.pg_wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pg_wrap a,
.pg_wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.pg_wrap strong {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    font-weight: 700;
}

.pg_wrap a:hover {
    background: #e0e7ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

/* 검색 */
#bo_sch {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

#bo_sch select,
#bo_sch input[type=text] {
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

#bo_sch input[type=text]:focus {
    border-color: #4f46e5;
}

#bo_sch button {
    padding: 9px 20px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* 글쓰기/수정 버튼 하단 */
.btn_confirm_wr {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn_confirm_wr .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn_confirm_wr .btn_submit {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.btn_confirm_wr .btn_cancel {
    background: #f3f4f6;
    color: #374151;
}

/* 보기 페이지 */
#bo_v_info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#bo_v_title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e1b4b;
    padding: 20px 0 14px;
    border-bottom: 2px solid #4f46e5;
    margin-bottom: 4px;
}

.bo_v_info_item {
    font-size: 0.85rem;
    color: #6b7280;
}

#bo_v_con {
    line-height: 1.8;
    color: #374151;
    font-size: 0.95rem;
    padding: 20px 0;
    min-height: 200px;
    border-bottom: 1px solid #e5e7eb;
}

/* 댓글 */
#bo_vc {
    margin-top: 32px;
}

#bo_vc h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.cm_comment_item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cm_comment_meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.cm_comment_nick {
    font-weight: 600;
    color: #374151;
}

.cm_comment_body {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}
