@charset "utf-8";

/* ===== CSS 변수 (다크모드 기본) ===== */
:root {
    --bg: #0f1117;
    --bg-panel: #1a1d27;
    --bg-surface: #232733;
    --bg-hover: #2a2f3e;
    --border: #2e3348;
    --text: #e4e6ed;
    --text-dim: #8b8fa3;
    --text-muted: #5c6178;
    --accent: #6c8cff;
    --accent-dim: rgba(108,140,255,0.15);
    --accent-glow: rgba(108,140,255,0.3);
    --green: #4ade80;
    --green-dim: rgba(74,222,128,0.15);
    --red: #f87171;
    --red-dim: rgba(248,113,113,0.15);
    --orange: #fb923c;
    --orange-dim: rgba(251,146,60,0.15);
    --radius: 10px;
    --sidebar-w: 260px;
}

/* ===== 라이트모드 ===== */
[data-theme="light"] {
    --bg: #f5f6fa;
    --bg-panel: #ffffff;
    --bg-surface: #f0f1f5;
    --bg-hover: #e8e9f0;
    --border: #d8dae5;
    --text: #1a1d27;
    --text-dim: #5c6178;
    --text-muted: #8b8fa3;
    --accent: #4a6cf7;
    --accent-dim: rgba(74,108,247,0.1);
    --accent-glow: rgba(74,108,247,0.2);
    --green: #22c55e;
    --green-dim: rgba(34,197,94,0.1);
    --red: #ef4444;
    --red-dim: rgba(239,68,68,0.1);
    --orange: #f97316;
    --orange-dim: rgba(249,115,22,0.1);
}

/* ===== 초기화 ===== */
html { overflow-y: scroll; }
body {
    margin: 0; padding: 0;
    font-size: 14px;
    font-family: 'Segoe UI', 'Malgun Gothic', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img { margin: 0; padding: 0; border: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 1em; font-family: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ul, dl, dt, dd { margin: 0; padding: 0; list-style: none; }
legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
label, input, button, select, img { vertical-align: middle; font-size: 1em; }
input, button { margin: 0; padding: 0; font-family: inherit; font-size: 1em; }
input[type="submit"] { cursor: pointer; }
button { cursor: pointer; }
textarea, select { font-family: inherit; font-size: 1em; }
select { margin: 0; }
p { margin: 0; padding: 0; word-break: break-all; }
hr { display: none; }
pre { overflow-x: scroll; font-size: 1.1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

*, :after, :before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input[type=text], input[type=password], textarea {
    transition: all 0.2s ease-in-out;
    outline: none;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 8px 12px;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}
input[type=text]::placeholder, input[type=password]::placeholder, textarea::placeholder {
    color: var(--text-muted);
}
select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 8px 12px;
}

.placeholdersjs { color: var(--text-muted) !important; }

/* ===== 공통 display ===== */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: block !important; } }
.mobile-only { display: block; }
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* ===== 팝업레이어 ===== */
#hd_pop { z-index: 1000; position: fixed; top: 80px; left: calc(var(--sidebar-w) + 40px); }
#hd_pop h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.hd_pops { position: absolute; border: 1px solid var(--border); background: var(--bg-surface); border-radius: var(--radius); }
.hd_pops img { max-width: 100%; }
.hd_pops_footer { padding: 0; background: var(--bg-panel); color: var(--text); text-align: left; position: relative; border-radius: 0 0 var(--radius) var(--radius); }
.hd_pops_footer:after { display: block; visibility: hidden; clear: both; content: ""; }
.hd_pops_footer button { padding: 10px; border: 0; color: var(--text); background: transparent; }
.hd_pops_footer .hd_pops_reject { background: var(--bg-panel); text-align: left; }
.hd_pops_footer .hd_pops_close { background: var(--bg-hover); position: absolute; top: 0; right: 0; border-radius: 0 0 var(--radius) 0; }

/* ===== 사이드바 ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.sidebar-header h1 a { color: var(--text); text-decoration: none; }
.sidebar-header h1 a:hover { text-decoration: none; }
.sidebar-header h1 b { color: var(--accent); font-weight: 800; }
.sidebar-header p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.sidebar-section { padding: 16px 12px 8px; }
.sidebar-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px; padding: 0 8px 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    cursor: pointer; transition: all 0.15s; font-size: 14px;
    color: var(--text-dim); text-decoration: none;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }
.nav-item .material-icons-round { font-size: 20px; }
.nav-item .badge {
    margin-left: auto; font-size: 11px; padding: 2px 8px;
    border-radius: 10px; background: var(--bg-surface); color: var(--text-muted);
}
.nav-item.active .badge { background: var(--accent-dim); color: var(--accent); }

/* 서브메뉴 */
.nav-sub { padding-left: 20px; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.nav-item.has-sub.open + .nav-sub { max-height: 500px; }
.nav-sub .nav-item { font-size: 13px; padding: 8px 12px; }
.nav-item .arrow {
    margin-left: auto; font-size: 16px; transition: transform 0.2s;
}
.nav-item.has-sub.open .arrow { transform: rotate(90deg); }


.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.sidebar-user-info {
    padding: 4px 0 10px;
    font-size: 14px;
}
.sidebar-user-info strong {
    color: var(--text);
    margin-left: 6px;
}
.sidebar-point-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(108,140,255,0.15);
    border-radius: 8px;
    margin-bottom: 10px;
}
.sidebar-point-box .material-icons-round {
    font-size: 18px;
    color: var(--accent);
}
.sidebar-point-box .point-label {
    font-size: 12px;
    color: var(--text-dim);
}
.sidebar-point-box .point-value {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}
.sidebar-user-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.sidebar-user-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
}
.sidebar-user-links a:hover { color: var(--accent); text-decoration: none; }
.sidebar-user-links a .material-icons-round { font-size: 16px; }
.sidebar-user-links a.link-admin { color: var(--accent); font-weight: 600; }

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* 테마 토글 */
.theme-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    cursor: pointer; transition: all 0.15s; font-size: 13px;
    color: var(--text-dim); border: 1px solid var(--border);
    background: var(--bg-surface);
    width: 100%;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); }
.theme-toggle .material-icons-round { font-size: 18px; }

/* 사이드바 접속자/통계 */
.sidebar-stat {
    padding: 12px; font-size: 12px; color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.sidebar-stat strong { color: var(--accent); }

/* ===== 메인 영역 ===== */
#hd { display: none; } /* 기존 헤더 숨김 (사이드바가 대체) */

#wrapper {
    margin-left: var(--sidebar-w);
    min-height: calc(100vh - 200px);
}

#container_wr {
    padding: 32px 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
#container_wr:after { display: block; visibility: hidden; clear: both; content: ""; }

#container {
    position: relative;
    min-height: 500px;
    height: auto !important;
    font-size: 1em;
    width: 100%;
}
#container:after { display: block; visibility: hidden; clear: both; content: ""; }
#container_title {
    font-size: 1.5em; margin: 0 auto 20px; font-weight: 700;
}
#container_title span {
    margin: 0 auto 10px; display: block; line-height: 30px;
}

/* 사이드 위젯 (사용 안함 - 숨김) */
#aside { display: none; }

/* ===== 최신글 그리드 ===== */
.lt_wr { width: 32%; }
.lt_wr:nth-child(3n+1) { clear: both; }
.latest_wr { margin-bottom: 20px; }
.latest_wr:after { display: block; visibility: hidden; clear: both; content: ""; }
.latest_top_wr { margin: 0 -10px 20px; }
.latest_top_wr:after { display: block; visibility: hidden; clear: both; content: ""; }

/* ===== 하단 레이아웃 ===== */
#ft {
    background: var(--bg-panel);
    margin-left: var(--sidebar-w);
    border-top: 1px solid var(--border);
    text-align: center;
}
#ft h1 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#ft_wr {
    max-width: 1200px; margin: 0 auto; padding: 16px 40px;
    text-align: center;
}
#ft_copy {
    text-align: center; color: var(--text-muted); font-size: 0.85em;
}
#top_btn {
    position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
    line-height: 42px; border: 1px solid var(--border); color: var(--text-dim);
    text-align: center; font-size: 18px; z-index: 90;
    background: var(--bg-surface); border-radius: 8px; cursor: pointer;
    transition: all 0.15s;
}
#top_btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ===== 게시물 선택복사/이동 ===== */
#copymove .win_desc { text-align: center; display: block; }
#copymove .tbl_wrap { margin: 20px; }
#copymove .win_btn { padding: 0 20px 20px; }
.copymove_current { float: right; background: var(--red); padding: 5px; color: #fff; border-radius: 3px; }
.copymove_currentbg { background: var(--bg-hover); }

/* ===== 화면낭독기 ===== */
#hd_login_msg { position: absolute; top: 0; left: 0; font-size: 0; line-height: 0; overflow: hidden; }
.msg_sound_only, .sound_only {
    display: inline-block !important; position: absolute; top: 0; left: 0;
    width: 0; height: 0; margin: 0 !important; padding: 0 !important;
    font-size: 0; line-height: 0; border: 0 !important; overflow: hidden !important;
}

/* 본문 바로가기 */
#skip_to_container a {
    z-index: 100000; position: absolute; top: 0; left: 0;
    width: 1px; height: 1px; font-size: 0; line-height: 0; overflow: hidden;
}
#skip_to_container a:focus, #skip_to_container a:active {
    width: 100%; height: 60px; background: var(--accent);
    color: #fff; font-size: 1.5em; font-weight: bold; text-align: center;
    text-decoration: none; line-height: 60px;
}

.img_fix { width: 100%; height: auto; }

/* ===== 캡챠 ===== */
#captcha { display: inline-block; position: relative; }
#captcha legend { position: absolute; margin: 0; padding: 0; font-size: 0; line-height: 0; text-indent: -9999em; overflow: hidden; }
#captcha #captcha_img { height: 40px; border: 1px solid var(--border); vertical-align: top; padding: 0; margin: 0; border-radius: 4px; }
#captcha #captcha_mp3 { margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat; text-indent: -999px; border-radius: 3px; }
#captcha #captcha_reload { margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat 0 -40px; text-indent: -999px; border-radius: 3px; }
#captcha #captcha_key { margin: 0 0 0 3px; padding: 0 5px; width: 90px; height: 40px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.2em; font-weight: bold; text-align: center; border-radius: 6px; vertical-align: top; }
#captcha #captcha_info { display: block; margin: 5px 0 0; font-size: 0.95em; }

/* 모바일 캡챠 */
#captcha.m_captcha audio { display: block; margin: 0 0 5px; width: 187px; }
#captcha.m_captcha #captcha_img { width: 160px; height: 60px; border: 1px solid var(--border); margin-bottom: 3px; margin-top: 5px; display: block; }
#captcha.m_captcha #captcha_reload { position: static; margin: 0; padding: 0; width: 40px; height: 40px; border: 0; background: transparent; vertical-align: middle; overflow: hidden; cursor: pointer; background: url('../../../img/captcha2.png') no-repeat 0 -40px; text-indent: -999px; }
#captcha.m_captcha #captcha_reload span { display: none; }
#captcha.m_captcha #captcha_key { margin: 0; padding: 0 5px; width: 115px; height: 29px; border: 1px solid var(--border); background: var(--bg); font-size: 1.2em; font-weight: bold; text-align: center; line-height: 29px; margin-left: 3px; }
#captcha.m_captcha #captcha_info { display: block; margin: 5px 0 0; font-size: 0.95em; }
#captcha.m_captcha #captcha_mp3 { width: 31px; height: 31px; background: url('../../../img/captcha2.png') no-repeat 0 0; vertical-align: top; overflow: hidden; cursor: pointer; text-indent: -9999px; border: none; }

/* ===== CKEditor 단축키 ===== */
.cke_sc { margin: 0 0 5px; text-align: right; }
.btn_cke_sc { display: inline-block; padding: 0 10px; height: 23px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); text-decoration: none; line-height: 1.9em; vertical-align: middle; cursor: pointer; border-radius: 4px; }
.cke_sc_def { margin: 0 0 5px; padding: 10px; border: 1px solid var(--border); background: var(--bg-surface); text-align: center; border-radius: var(--radius); }
.cke_sc_def dl { margin: 0 0 5px; text-align: left; zoom: 1; }
.cke_sc_def dl:after { display: block; visibility: hidden; clear: both; content: ""; }
.cke_sc_def dt, .cke_sc_def dd { float: left; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--border); }
.cke_sc_def dt { width: 20%; font-weight: bold; }
.cke_sc_def dd { width: 30%; }

/* CKEditor 태그 기본값 */
#bo_v_con ul { display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; }
#bo_v_con ol { display: block; list-style-type: decimal; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; }
#bo_v_con li { display: list-item; }

/* ===== 버튼 ===== */
a.btn, .btn {
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 38px; height: 38px; padding: 0 16px;
    text-align: center; font-weight: 600; border: 0;
    font-size: 14px; border-radius: 6px; cursor: pointer;
    transition: all 0.15s; text-decoration: none;
}
a.btn:hover { text-decoration: none; }

a.btn01, button.btn01 {
    display: inline-block; padding: 8px 14px;
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text); text-decoration: none; vertical-align: middle; border-radius: 6px;
}
a.btn01:focus, a.btn01:hover, button.btn01:hover { background: var(--bg-hover); text-decoration: none; }

a.btn02, button.btn02 {
    display: inline-block; padding: 8px 14px;
    border: 1px solid var(--accent); background: var(--accent);
    color: #fff; text-decoration: none; vertical-align: middle; border-radius: 6px;
}
a.btn02:focus, .btn02:hover { background: #5a7aef; text-decoration: none; }

.btn_confirm { text-align: right; }

.btn_submit {
    border: 0; background: var(--accent); color: #fff;
    cursor: pointer; border-radius: 6px; padding: 8px 20px;
    font-weight: 600; transition: all 0.15s;
}
.btn_submit:hover { background: #5a7aef; box-shadow: 0 4px 16px var(--accent-glow); }

.btn_close {
    border: 1px solid var(--border); cursor: pointer;
    border-radius: 6px; background: var(--bg-surface); color: var(--text);
}
a.btn_close { text-align: center; line-height: 50px; }

a.btn_cancel, button.btn_cancel {
    display: inline-block; background: var(--bg-hover);
    color: var(--text-dim); text-decoration: none; vertical-align: middle;
    border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px;
}
.btn_cancel:hover { background: var(--bg-surface); color: var(--text); }

a.btn_frmline, button.btn_frmline {
    display: inline-block; width: 128px; padding: 0 5px;
    height: 40px; border: 0; background: var(--accent);
    border-radius: 6px; color: #fff; text-decoration: none; vertical-align: top;
}
button.btn_frmline { font-size: 1em; }

/* 게시판용 버튼 */
a.btn_b01, .btn_b01 {
    display: inline-block; color: var(--text-muted); text-decoration: none;
    vertical-align: middle; border: 0; background: transparent;
}
.btn_b01:hover { color: var(--text); }

a.btn_b02, .btn_b02 {
    display: inline-block; background: var(--accent); padding: 0 10px;
    color: #fff; text-decoration: none; border: 0; vertical-align: middle;
    border-radius: 6px;
}
a.btn_b02:hover, .btn_b02:hover { background: #5a7aef; }

a.btn_b03, .btn_b03 {
    display: inline-block; background: var(--bg-surface);
    border: 1px solid var(--border); color: var(--text-dim);
    text-decoration: none; vertical-align: middle; border-radius: 6px;
}
a.btn_b03:hover, .btn_b03:hover { background: var(--bg-hover); }

a.btn_b04, .btn_b04 {
    display: inline-block; background: var(--bg-surface);
    border: 1px solid var(--border); color: var(--text-dim);
    text-decoration: none; vertical-align: middle; border-radius: 6px;
}
a.btn_b04:hover, .btn_b04:hover { color: var(--text); background: var(--bg-hover); }

a.btn_admin, .btn_admin {
    display: inline-block; color: var(--red); text-decoration: none; vertical-align: middle;
}
.btn_admin:hover, a.btn_admin:hover { color: #ff5c5c; }

/* ===== 기본 테이블 ===== */
.tbl_wrap table {
    width: 100%; border-collapse: collapse; border-spacing: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.tbl_wrap caption { padding: 10px 0; font-weight: bold; text-align: left; }

.tbl_head01 { margin: 0 0 10px; }
.tbl_head01 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head01 thead th {
    padding: 14px 0; font-weight: 600; text-align: center;
    border-bottom: 1px solid var(--border); height: 40px;
    color: var(--text-dim); font-size: 13px;
}
.tbl_head01 thead th input { vertical-align: top; }
.tbl_head01 tfoot th, .tbl_head01 tfoot td { padding: 10px 0; border-top: 1px solid var(--border); background: var(--bg-hover); text-align: center; }
.tbl_head01 tbody th { padding: 8px 0; border-bottom: 1px solid var(--border); }
.tbl_head01 td {
    color: var(--text-dim); padding: 10px 5px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    line-height: 1.4em; height: 50px; word-break: break-all;
}
.tbl_head01 tbody tr:hover td { background: var(--bg-hover); }
.tbl_head01 a { color: var(--text); }
.tbl_head01 a:hover { text-decoration: underline; color: var(--accent); }

.tbl_head02 { margin: 0 0 10px; }
.tbl_head02 caption { padding: 0; font-size: 0; line-height: 0; overflow: hidden; }
.tbl_head02 thead th {
    padding: 8px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); background: var(--bg-hover);
    color: var(--text-dim); font-size: 0.95em; text-align: center;
}
.tbl_head02 thead a { color: var(--text-dim); }
.tbl_head02 thead th input { vertical-align: top; }
.tbl_head02 tfoot th, .tbl_head02 tfoot td { padding: 10px 0; border-top: 1px solid var(--border); background: var(--bg-hover); text-align: center; }
.tbl_head02 tbody th { padding: 5px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.tbl_head02 td { padding: 5px 3px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-surface); line-height: 1.4em; word-break: break-all; }

/* ===== 폼 테이블 ===== */
.tbl_frm01 { margin: 0 0 20px; }
.tbl_frm01 table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.tbl_frm01 th {
    width: 70px; padding: 7px 13px;
    border: 1px solid var(--border); border-left: 0;
    background: var(--bg-hover); text-align: left; color: var(--text-dim);
}
.tbl_frm01 td { padding: 7px 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; }
.wr_content textarea, .tbl_frm01 textarea, .form_01 textarea, .frm_input {
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); vertical-align: middle; border-radius: 6px; padding: 8px 12px;
}
.tbl_frm01 textarea { padding: 8px 12px; }
.frm_input { height: 40px; }

.full_input { width: 100%; }
.half_input { width: 49.5%; }
.twopart_input { width: 385px; margin-right: 10px; }
.tbl_frm01 textarea, .write_div textarea { width: 100%; height: 100px; }
.tbl_frm01 a { text-decoration: none; }
.tbl_frm01 .frm_file { display: block; margin-bottom: 5px; }
.tbl_frm01 .frm_info { display: block; padding: 0 0 5px; line-height: 1.4em; color: var(--text-dim); }
.frm_info.add_info { margin-top: 10px !important; padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; line-height: 1.6; }
.btn_info_toggle { display: block; margin: 5px 0 0 21px; font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; text-decoration: underline; }

/* 기본 리스트 */
.list_01 ul { border-top: 1px solid var(--border); }
.list_01 li {
    border-bottom: 1px solid var(--border); background: var(--bg-surface);
    padding: 10px 15px; list-style: none; position: relative;
}
.list_01 li:nth-child(odd) { background: var(--bg-panel); }
.list_01 li:after { display: block; visibility: hidden; clear: both; content: ""; }
.list_01 li:hover { background: var(--bg-hover); }
.list_01 li.empty_li { text-align: center; padding: 20px 0; color: var(--text-muted); }

/* 폼 리스트 */
.form_01 h2 { font-size: 1.1em; }
.form_01 li { margin-bottom: 10px; }
.form_01 ul:after, .form_01 li:after { display: block; visibility: hidden; clear: both; content: ""; }
.form_01 .left_input { float: left; }
.form_01 .margin_input { margin-right: 1%; }
.form_01 textarea { height: 100px; width: 100%; }
.form_01 .frm_label { display: inline-block; width: 130px; }

/* 자료 없는 목록 */
.empty_table { padding: 50px 0 !important; text-align: center; color: var(--text-muted); }
.empty_list { padding: 20px 0 !important; color: var(--text-muted); text-align: center; }

/* 필수입력 */
.required, textarea.required {
    background-image: url('../img/require.png') !important;
    background-repeat: no-repeat !important;
    background-position: right top !important;
}

/* 테이블 항목별 정의 */
.td_board { width: 80px; text-align: center; }
.td_category { width: 80px; text-align: center; }
.td_chk { width: 30px; text-align: center; }
.td_date { width: 60px; text-align: center; }
.td_datetime { width: 110px; text-align: center; }
.td_group { width: 80px; text-align: center; }
.td_mb_id { width: 100px; text-align: center; }
.td_mng { width: 80px; text-align: center; }
.td_name { width: 100px; text-align: left; }
.td_nick { width: 100px; text-align: center; }
.td_num { width: 50px; text-align: center; }
.td_numbig { width: 80px; text-align: center; }
.td_stat { width: 60px; text-align: center; }

.txt_active { color: var(--green); }
.txt_done { color: var(--red); }
.txt_expired { color: var(--text-muted); }
.txt_rdy { color: var(--green); }

/* ===== 새창 기본 스타일 ===== */
.new_win { position: relative; }
.new_win .tbl_wrap { margin: 0 20px; }
.new_win #win_title {
    font-size: 1.3em; height: 50px; line-height: 30px;
    padding: 10px 20px; background: var(--bg-panel); color: var(--text);
    border-bottom: 1px solid var(--border);
}

/* ===== 관리자 공지 배너 ===== */
.admin-notice-bar {
    padding: 12px 40px 0;
}
.admin-notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    animation: noticeSlideIn 0.3s ease;
}
@keyframes noticeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-notice-item > .material-icons-round:first-child { font-size: 20px; flex-shrink: 0; }
.admin-notice-text { flex: 1; }

.admin-notice-info {
    background: var(--accent-dim);
    border: 1px solid rgba(108,140,255,0.15);
    color: var(--accent);
}
.admin-notice-warn {
    background: var(--orange-dim);
    border: 1px solid rgba(251,146,60,0.15);
    color: var(--orange);
}
.admin-notice-success {
    background: var(--green-dim);
    border: 1px solid rgba(74,222,128,0.15);
    color: var(--green);
}
.admin-notice-red {
    background: var(--red-dim);
    border: 1px solid rgba(248,113,113,0.15);
    color: var(--red);
}
.admin-notice-purple {
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.18);
    color: #a855f7;
}

/* 관리자 공지 관리 패널 */
.admin-notice-manage {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.admin-notice-manage h3 {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.admin-notice-manage h3 .material-icons-round { font-size: 20px; color: var(--accent); }
.anm-form { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.anm-form textarea {
    flex: 1; min-width: 200px; min-height: 42px; max-height: 120px;
    padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-size: 14px; resize: vertical;
}
.anm-form select {
    height: 42px; padding: 0 12px; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px;
}
.anm-form button {
    height: 42px; padding: 0 20px; border: 0; border-radius: 8px;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.anm-form button:hover { background: #5a7aef; }
.anm-list { list-style: none; padding: 0; margin: 0; }
.anm-list li {
    padding: 12px 0; border-top: 1px solid var(--border); font-size: 13px;
}
.anm-list li:first-child { border-top: 0; }

/* 보기 모드 행 */
.anm-view {
    display: flex; align-items: center; gap: 10px;
}
.anm-list .anm-type {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 4px; flex-shrink: 0; white-space: nowrap;
}
.anm-type-info { background: var(--accent-dim); color: var(--accent); }
.anm-type-warn { background: var(--orange-dim); color: var(--orange); }
.anm-type-success { background: var(--green-dim); color: var(--green); }
.anm-type-red { background: var(--red-dim); color: var(--red); }
.anm-type-purple { background: rgba(168,85,247,0.12); color: #a855f7; }
.anm-list .anm-content { flex: 1; color: var(--text-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anm-list .anm-status {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 4px; flex-shrink: 0; white-space: nowrap;
}
.anm-list .anm-status.active { background: var(--green-dim); color: var(--green); }
.anm-list .anm-status.inactive { background: var(--bg-hover); color: var(--text-muted); }
.anm-list .anm-off { opacity: 0.5; }
.anm-list .anm-off .anm-content { text-decoration: line-through; }

/* 버튼 그룹 */
.anm-actions { display: flex; gap: 6px; flex-shrink: 0; }
.anm-btn {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer;
    transition: all 0.15s; white-space: nowrap;
}
.anm-edit-btn { color: var(--accent); }
.anm-edit-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.anm-toggle.on { color: var(--orange); }
.anm-toggle.on:hover { background: var(--orange-dim); border-color: var(--orange); }
.anm-toggle.off { color: var(--green); border-color: var(--green); }
.anm-toggle.off:hover { background: var(--green-dim); }
.anm-del { color: var(--red); }
.anm-del:hover { background: var(--red-dim); border-color: var(--red); }

/* 수정 폼 */
.anm-edit-form {
    padding-top: 8px;
}
.anm-edit-textarea {
    width: 100%; min-height: 60px; max-height: 150px;
    padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-size: 14px;
    resize: vertical; margin-bottom: 10px;
}
.anm-edit-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); outline: none; }
.anm-edit-row { display: flex; gap: 8px; align-items: center; }
.anm-edit-select {
    height: 36px; padding: 0 10px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--bg); color: var(--text); font-size: 13px;
}
.anm-save { color: var(--green); border-color: var(--green); }
.anm-save:hover { background: var(--green-dim); }
.anm-cancel { color: var(--text-muted); }
.anm-cancel:hover { background: var(--bg-hover); }

/* ===== 카드 스타일 (최신글 등) ===== */
.card-surface {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== 모바일 사이드바 토글 ===== */
.sidebar-mobile-toggle {
    display: none;
    position: fixed; top: 12px; left: 12px; z-index: 200;
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--bg-panel); border: 1px solid var(--border);
    color: var(--text); font-size: 20px; cursor: pointer;
    align-items: center; justify-content: center;
}
.sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-mobile-toggle { display: flex; }
    .sidebar.open ~ .sidebar-overlay { display: block; }
    #wrapper { margin-left: 0; }
    #ft { margin-left: 0; }
    #container_wr { padding: 20px 16px; padding-top: 60px; }
}
