:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);
    --input-bg: #0f172a;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --radius: 5px;
}

/* 배경 디자인 */
#bo_w {
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    padding: 60px 20px;
    min-height: 100vh;
}

.write-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 가로형 레이아웃 */
.frm_row { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 24px; 
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.frm_label { 
    width: 150px; 
    padding-top: 10px;
    font-size: 0.9rem; 
    color: var(--accent-color); 
    font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 0 8px var(--accent-glow);
}
.frm_content { flex-grow: 1; }

/* 입력창 및 에디터 강제 다크화 */
.frm_input, .frm_select, .frm_textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
    border-radius: var(--radius);
    padding: 12px 16px !important;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.frm_input:focus, .frm_select:focus, .frm_textarea:focus { 
    border-color: var(--accent-color) !important; 
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none; 
}
.frm_input2 { width: 600px; }

/* 에디터 배경색 강제 조정 */
#wr_content { 
    background-color: var(--input-bg) !important; 
    color: #fff !important; 
    padding: 20px !important; 
    border: 1px solid var(--border-color) !important;
}
.cke_chrome { border: 1px solid var(--border-color) !important; }
.cke_top, .cke_bottom { background: #1e293b !important; border-color: var(--border-color) !important; }

/* 토글 스위치 디자인 */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; margin-left: 10px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-color); box-shadow: 0 0 10px var(--accent-glow); }
input:checked + .slider:before { transform: translateX(22px); }
.slider-delete { background-color: #7f1d1d !important; }

/* 여분필드 슬롯 디자인 */
.exfield-slot {
    display: none;
    gap: 15px;
    margin-bottom: 12px;
    background: rgba(15, 23, 42, 0.4);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.exfield-slot.active { display: flex; }
.ex-item { flex: 1; display: flex; align-items: center; }
.ex-tit { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; padding:0px 15px 0px 10px; }
.ex-tit2 { padding-left:30px; }

/* 파일 슬롯 */
.file-slot {
    display: none;
    margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.4);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.file-slot.active { display: block; }

/* 버튼 디자인 */
.file-btn-label { 
    background: var(--accent-color); 
    color: #020617; 
    padding: 10px 22px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.85rem;
    display: inline-block;
    transition: 0.2s;
}
.file-btn-label:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--accent-glow); }
.btn-file-add { background: transparent !important; border: 1px solid var(--accent-color) !important; color: var(--accent-color) !important; margin-top: 10px; }

.btn-toggle-main {
    width: 100%; padding: 15px 20px; background: rgba(56, 189, 248, 0.05); border: 1px dashed var(--accent-color);
    color: var(--accent-color); border-radius: var(--radius); cursor: pointer; font-weight: 700; margin: 40px 0;
    font-size: 1rem;
}

.write-foot { display: flex; justify-content: center; gap: 15px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.btn-submit { background: var(--accent-color); color: #020617; border: none; padding: 10px 80px; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 0.9rem; }
.btn-back { background: #334155; color: #fff; text-decoration: none; padding: 10px 40px; border-radius: var(--radius); font-weight: 600; }

