@charset "utf-8";
/* [CORE] 변수 설정 */
:root {
--bg-dark: #020617;
--bg-black: rgba(0, 0, 0, 0.95);
--bg-header: #080c14;
--bg-input: #050505;
--accent-blue: #00d4ff;
--accent-orange: #f59e0b;
--accent-red: #ff2d55;
--border-color: #1e293b;
--text-main: #f1f5f9;
--text-dim: #94a3b8;
--font-mono: 'JetBrains Mono', 'Consolas', monospace;
}
/* [ANIMATION] */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
/* [LAYOUT] */
#WRITE_WRAP {
position: relative;
min-height: 100vh;
background: var(--bg-dark);
padding: 40px 0;
font-family: 'Pretendard', sans-serif;
color: var(--text-main);
overflow-x: hidden;
color-scheme: dark;
}
#space-canvas {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
pointer-events: none;
z-index: 1;
opacity: 0.25;
}
#WRITE {
position: relative;
z-index: 2;
width: calc(100% - 100px);
margin: 0 50px;
animation: fadeInUp 1s ease-out forwards;
}
#fwrite {
background: var(--bg-black);
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 25px 50px rgba(0,0,0,0.8);
overflow: hidden;
}
/* [MODULE] 헤더 */
.write-header {
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-color);
background: var(--bg-header);
}
.write-header__title-group {
display: flex;
align-items: center;
gap: 15px;
}
.write-header__title {
margin: 0;
font-size: 1.1rem;
color: #fff;
font-weight: 900;
}
.write-header__title i { color: var(--accent-blue); }
.write-header__status-badge {
padding: 4px 12px;
border-radius: 20px;
background: rgba(0,0,0,0.3);
font-weight: 700;
font-size: 0.7rem;
border: 1px solid;
white-space: nowrap;
}
.write-header__btn-group { display: flex; gap: 10px; }
/* [MODULE] 테이블 및 폼 */
.write-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.write-table tr { border-bottom: 1px solid var(--border-color); }
.td-label {
width: 180px;
padding: 25px 30px;
color: var(--text-dim);
font-size: 0.85rem;
font-weight: 700;
background: var(--bg-header);
border-right: 1px solid var(--border-color);
}
.td-label i { width: 25px; color: var(--accent-blue); margin-right: 5px; text-align: center; }
.td-content { padding: 20px 30px; }
.td-content--editor { background: #000; padding: 0; }
#wr_content { line-height: 25px; font-size: 14px;}
/* 폼 레이아웃 유틸리티 */
.form-row { display: flex; flex-wrap: nowrap; gap: 15px; align-items: center; width: 100%; }
.form-group { display: flex; align-items: center; gap: 10px; position: relative; flex: 1; min-width: 0; }
.form-divider { width: 1px; height: 20px; background: #334155; flex-shrink: 0; }
.form-label-mini { color: var(--text-dim); font-weight: 700; font-size: 0.75rem; white-space: nowrap; flex-shrink: 0; width: 55px; }
.ml-auto { margin-left: auto; flex: none; }
/* 타겟 라벨 (Table/Event) */
.target-label {
position: absolute;
top: -9px; left: 65px; /* form-label-mini 너비 고려 */
background: var(--bg-input);
padding: 0 5px;
font-size: 0.65rem;
font-weight: 800;
z-index: 5;
pointer-events: none;
}
.target-label--blue { color: var(--accent-blue); }
.target-label--orange { color: var(--accent-orange); }
/* 입력 요소 공통 */
input[type="text"], select, textarea {
background: var(--bg-input) !important;
border: 1px solid var(--border-color) !important;
color: #fff !important;
padding: 10px 15px !important;
border-radius: 6px !important;
font-size: 0.9rem;
outline: none;
transition: 0.2s;
width: 100%; /* 기본적으로 부모 너비 채움 */
}
input:focus, select:focus, textarea:focus {
border-color: var(--accent-blue) !important;
box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}
/* 개별 입력 스타일 */
.select-base { width: 140px !important; flex: none; }
.select-target { flex: 1; min-width: 150px; }
.input-ver { width: 70px !important; text-align: center; flex: none; }
.input-kor { flex: 1; min-width: 150px; }
.input-full { width: 100%; }
.textarea-json { width: 100%; height: 120px; font-family: var(--font-mono); line-height: 25px; font-size:14px; }
/* Select 화살표 커스텀 */
select {
appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 16px;
padding-right: 40px !important;
}
/* [MODULE] 버튼 */
.btn-submit {
background: var(--accent-blue);
color: var(--bg-dark);
width: 200px;
height: 46px;
font-weight: 800;
font-size: 0.95rem;
border: none;
border-radius: 4px;
cursor: pointer;
transition: 0.2s;
}
.btn-submit:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4); }
.btn-submit--small { width: 100px !important; height: auto; padding: 8px 15px; font-size: 0.8rem; }
.btn-toggle-clean {
background: #0f172a;
border: 1px solid var(--border-color);
color: var(--accent-blue);
padding: 12px;
font-size: 0.85rem;
font-weight: 700;
width: 100%;
cursor: pointer;
transition: 0.2s;
}
/* 토글 스위치 */
.toggle-btn { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.toggle-btn 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: 30px;
}
.slider:before {
position: absolute; content: "";
height: 16px; width: 16px;
left: 4px; bottom: 4px;
background-color: #cbd5e1; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(22px); background-color: #fff; }
/* [MODULE] 결과 바 */
.dynamic-result-area {
background: var(--bg-input);
padding: 20px 30px;
border-bottom: 1px solid var(--border-color);
display: flex; flex-wrap: wrap; gap: 15px 40px;
border-left: 4px solid var(--accent-blue);
}
.res-item { font-family: var(--font-mono); font-size: 0.75rem; display: flex; align-items: center; white-space: nowrap; }
.res-item span { color: #64748b; margin-right: 10px; font-weight: 600; }
.res-item b { color: var(--accent-blue); text-transform: uppercase; }
/* 하단 푸터 */
.write-footer { padding: 30px; display: flex; justify-content: center; background: var(--bg-header); }