select {
    border: none;
    border-radius: 5px;
    height: 40px;
    line-height: 40px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    background: none;
    background-color: #f3f3f5;
    color: #333;
}
input[type="text"] {
    border: none;
    border-radius: 5px;
    height: 40px;
    line-height: 40px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    background: none;
    background-color: #f3f3f5;
    color: #333;
}
input[type="text"]::placeholder {
    color: #888;
}
input[type="text"]:focus {
    border: 2px solid #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: #333;
    font-weight: 600;
}
input[type="checkbox"]:checked {
    accent-color: #333;
}
.newboard {
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    overflow-y: auto;
    scrollbar-color: #c9c9c9 #f9f9f9;
    box-sizing: border-box;
    width: 100%;
    height: 80vh;
}
.newboard_top {
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2%;
}
.newboard_category {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    background: #f9fafb;
    padding: 16px;
    align-items: stretch;
}
.newboard_category input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.newboard_category label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    user-select: none;
    min-height: 44px;
}
.newboard_category input[type="radio"]:checked + label {
    border-color: #05C3DD;
    box-shadow: 0 4px 12px rgba(5, 195, 221, 0.3);
    background: #F0F9FF;
    color: #05C3DD;
    font-weight: 700;
    transform: translateY(-2px);
}
.newboard_category label:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);

}
.newboard_category label:focus {
    outline: 2px solid #05C3DD;
    outline-offset: 2px;
}
.newboard_search {
    display: inline-block;
}
.newboard_search form {
    display : flex;
    align-items: center;
    gap: 5px;
}
.newboard_search button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 16px;
    color: #333;
}
.newboard_search button svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}
.newboard_total {
    font-size: 12px;
    color: #999;
}
.newboard_total span {
    margin-left: 10px;
}
.newboard_total strong {
    color: #333;
    font-size: 14px;
}
.newboard_list_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2%;
    border-bottom: 1px solid #eee;
    background-color: #f5f5f5;
}
.newboard_list_head .newboard_list_write {
    background-color: #0275d8;
    color: #fff;
    border: none;
    padding: 15px 60px;
    border-radius: 10px;
}
.newboard_list_head .newboard_list_write:hover {
    background-color: #025aa5;
}
.newboard_list {
    width: 100%;
    border-collapse: collapse;
}
.newboard_list_chkall {
    padding-left: 2%;
    padding-top: 2%;
}
.newboard_list_chkall label {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: #333;
    font-weight: 600;
}
.newboard_list_chk {
    width: 30px;
    text-align: center;
    border-right: 1px solid #eee;
}
.newboard_list ul {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 2%;
}
.newboard_list li {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 3%;
}
.newboard_list li:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.newboard_list_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}
.newboard_list_wrap .newboard_list_top {
    display: flex;
    align-items: center;
    width: 100%;
}
.newboard_list_wrap .newboard_list_top .newboard_list_chk {
    margin-right: 10px;
}
.newboard_list_wrap .newboard_list_top .newboard_list_contents {
    display: flex;
    align-items: center;
    gap: 2%;
    flex-grow: 1;
    overflow: hidden;
}
.newboard_list_wrap .newboard_list_top .newboard_list_contents .badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 3px;
    margin-right: 5px;
}
.newboard_list_wrap .newboard_list_top .newboard_list_contents .badge.emergency {
    background-color: #d9534f;
    color: #fff;
}
.newboard_list_wrap .newboard_list_top .newboard_list_contents .badge.important {
    background-color: #5bc0de;
    color: #fff;
}
.newboard_list_wrap .newboard_list_top .newboard_list_contents .badge.notice {
    background-color: #5cb85c;
    color: #fff;
}
.newboard_list_wrap .newboard_list_top .newboard_list_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.newboard_list_wrap .newboard_list_top .newboard_list_title.color_i {
    color: #5bc0de;
}
.newboard_list_wrap .newboard_list_top .newboard_list_title.color_e {
    color: #d9534f;
}
.newboard_list_wrap .newboard_list_top .newboard_list_title.color_n {
    color: #000;
}
.newboard_list_wrap .newboard_list_top .newboard_list_new {
    background-color: #05C3DD ;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}
.newboard_list_wrap .newboard_list_middle {
    width: 95%;
}
.newboard_list_wrap .newboard_list_middle .newboard_list_content {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    max-height: 3em; /* 최대 높이 설정 (2줄) */
    overflow: hidden; /* 넘치는 텍스트 숨기기 */
    text-overflow: ellipsis; /* 넘치는 텍스트에 ... 표시 */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 보여줄 줄 수 */
    -webkit-box-orient: vertical;
    word-break: break-all; /* 단어가 길 경우 줄바꿈 */
    margin: 1% 0;
}
.newboard_list_wrap .newboard_list_bottom {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 12px;
    color: #999;
    gap: 2%;
}
.newboard_list_wrap .newboard_list_bottom svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 3px;
}
.newboard_list_wrap .newboard_list_bottom .newboard_list_name {
    font-size: 14px;
    color: #333;
}
.newboard_list_wrap .newboard_list_bottom .newboard_list_date {
    font-size: 12px;
    color: #999;
}
.newboard_list_wrap .newboard_list_bottom .newboard_list_hit {
    font-size: 12px;
    color: #999;
}
.newboard_list_wrap .newboard_list_bottom .newboard_list_hit span {
    color: #333;
}
.newboard_list .empty_table {
    text-align: center;
    padding: 50px 0;
    color: #999;
}
.newboard_list_btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5%;
    padding: 2%;
}
.newboard_list_btn button {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    padding: 15px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.newboard_list_btn .newboard_list_delete {
    background-color: #d9534f;
    color: #fff;
    border: none;
}
.newboard_list_btn .newboard_list_delete:hover {
    background-color: #c9302c;
}
.newboard_list_btn .newboard_list_copy {
    background-color: #5bc0de;
    color: #fff;
    border: none;
}
.newboard_list_btn .newboard_list_copy:hover {
    background-color: #31b0d5;
}
.newboard_list_btn .newboard_list_move {
    background-color: #5cb85c;
    color: #fff;
    border: none;
}
.newboard_list_btn .newboard_list_move:hover {
    background-color: #449d44;
}

@media (max-width: 768px) {
    .newboard {
        height: 82vh;
    }
    .newboard_top {
        gap: 10px;
    }
    .newboard_category {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 5px;
    }
    .newboard_category label {
        padding: 10px 12px;
        min-height: 33px;
    }
    .newboard_list_wrap .newboard_list_top .newboard_list_contents {
        gap: 1%;
    }
    .newboard_list_wrap .newboard_list_top .newboard_list_title {
        font-size: 14px;
    }
    .newboard_list_wrap .newboard_list_top .newboard_list_title.color_i,
    .newboard_list_wrap .newboard_list_top .newboard_list_title.color_e,
    .newboard_list_wrap .newboard_list_top .newboard_list_title.color_n {
        font-size: 14px;
    }
    .newboard_list_wrap .newboard_list_bottom {
        font-size: 10px;
        gap: 1%;
    }
    .newboard_list_wrap .newboard_list_bottom svg {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }
    .newboard_list_btn {
        gap: 10px;
    }
    .newboard_list_btn button {
        font-size: 12px;
        padding: 6px 10px;
    }
    .newboard_list_btn .newboard_list_write {
        padding: 6px 20px;
    }
}