#bo_w {
    background-color: #222;
    color: #eee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'nanumsquare';
}

#bo_w h2, #bo_w h3 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.write_flex {
    display: flex;
    gap: 10px;
}

/* 입력 필드 스타일 */
#bo_w .frm_input, 
#bo_w .frm_file,
#bo_w input[type="url"],
#bo_w input[type="text"],
#bo_w input[type="number"] {
    background-color: #333;
    color: #eee;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#bo_w .frm_input:focus, 
#bo_w input[type="url"]:focus,
#bo_w input[type="text"]:focus,
#bo_w input[type="number"]:focus {
    border-color: #666;
    box-shadow: 0 0 5px rgba(100, 100, 100, 0.5);
    background-color: #3a3a3a;
}

.bo_w_notice {
    display: flex;
    padding: 3px 10px;
    background-color: #444;
    border-radius: 6px;
    align-items: center;
    width: fit-content;
    margin-bottom: 20px;
    gap: 3px;
    font-weight: 600;
    border: 1px solid #999;
}

/* 라벨 스타일 */
#bo_w label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

#bo_w small {
    color: #999;
    margin-left: 5px;
}

/* 섹션 스타일 */
.write_div {
    margin-bottom: 30px;
}

.bo_w_tit, .bo_w_order, .bo_w_banner, .bo_w_link, .bo_w_tooltip {
    margin-bottom: 20px;
}

/* 배너 업로드 영역 */
.banner_input_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner_upload, .banner_url {
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
}

.frm_info {
    color: #999;
    margin-top: 8px;
    font-size: 0.9em;
}

/* 파일 삭제 체크박스 */
.file_del {
    margin-top: 10px;
    display: block;
    color: #aaa;
}

.file_del input[type="checkbox"] {
    margin-right: 5px;
}

/* 툴팁 설정 영역 */
.tooltip_colors {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tooltip_bg, .tooltip_text {
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
    flex: 1;
}

.tooltip_preview {
    grid-column: 1 / -1;
    margin-top: 15px;
    text-align: center;
}

.tooltip_preview span {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
}

/* 툴팁 미리보기 박스 */
#tooltip_preview_box {
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background-color: #333;
    color: #eee;
    min-width: 150px;
}

/* 컬러 피커 스타일 */
input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 10px;
}

/* 버튼 스타일 */
.btn_confirm {
    text-align: center;
    margin-top: 30px;
}

.btn_submit {
    background-color: #3d5afe;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_submit:hover {
    background-color: #304ffe;
    box-shadow: 0 2px 8px rgba(61, 90, 254, 0.4);
}

.btn_cancel {
    background-color: #444;
    color: #eee;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn_cancel:hover {
    background-color: #555;
}

/* 공지 체크박스 스타일 */
.write_option {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 6px;
}

.write_option input[type="checkbox"] {
    margin-right: 5px;
}

/* 반응형 조정 */
@media (min-width: 768px) {
    .tooltip_colors {
        grid-template-columns: 1fr 1fr;
    }
    
    .banner_input_wrap {
        flex-direction: row;
    }
    
    .banner_upload, .banner_url {
        flex: 1;
    }
}

/* 툴팁 미리보기 JS 연동 */
#tooltip_preview_box {
    transition: all 0.3s ease;
}

.banner_upload input#bf_file_1 {
    align-content: center;
    padding: 0;
    margin: 0;
}

.banner_url input#wr_link1::placeholder {
    color: #999;
}