/* ui.css — 임시 기본 스타일 (ASP /css/ui.css 자리).
   나중에 기존 디자인(css/images)을 이식하면 교체. */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans KR", sans-serif; color: #333; background: #f4f5f7; }
a { color: #ff6612; text-decoration: none; }
a:hover { text-decoration: underline; }

#header { background: #2b2f3a; color: #fff; }
#header .bg { display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 14px 20px; }
#header .logo { margin: 0; font-size: 22px; }
#header .logo a { color: #fff; }
#header .gnb a { color: #ccd; margin-left: 16px; font-size: 14px; }

#body .bg { display: flex; max-width: 1200px; margin: 20px auto; gap: 20px; padding: 0 20px; }

.mLnb { width: 200px; flex: 0 0 200px; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; }
.mLnb ul { list-style: none; margin: 0; padding: 8px; }
.mLnb li a { display: block; padding: 10px 12px; color: #333; border-radius: 6px; }
.mLnb li a:hover { background: #fff3ec; color: #ff6612; text-decoration: none; }

.contents { flex: 1; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 24px; min-height: 500px; }
.page-title { font-size: 20px; font-weight: 700; border-bottom: 2px solid #2b2f3a; padding-bottom: 12px; margin-top: 0; }
.welcome h2 { color: #ff6612; }

#footer { text-align: center; color: #999; padding: 20px; font-size: 13px; }

/* ===== 로그인 화면 ===== */
.login-body { background: #2b2f3a; display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { width: 320px; text-align: center; }
.login-box h1 { color: #fff; font-size: 22px; margin-bottom: 20px; }
.login-box input { display: block; width: 100%; padding: 12px; margin-bottom: 10px; border: none; border-radius: 6px; font-size: 15px; }
.login-box button { width: 100%; padding: 12px; background: #ff6612; color: #fff; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.login-box button:hover { background: #e55600; }
.login-error { color: #ffb3a7; background: rgba(217,80,54,.2); padding: 10px; border-radius: 6px; font-size: 14px; }
.login-copy { color: #889; font-size: 12px; margin-top: 14px; }
.gnb-user { color: #ffcf9e; margin-right: 12px; font-size: 14px; }

/* ===== 검색/신고관리 ===== */
.state-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.state-tabs a { padding: 6px 11px; background: #eef0f3; border-radius: 5px; font-size: 13px; color: #555; }
.state-tabs a.on { background: #2b2f3a; color: #fff; }
.search-form { margin-bottom: 18px; }
.form-table { width: 100%; border-collapse: collapse; }
.form-table th { width: 90px; background: #f8f9fa; border: 1px solid #e3e3e3; padding: 9px; font-weight: 600; text-align: center; font-size: 14px; }
.form-table td { border: 1px solid #e3e3e3; padding: 9px; font-size: 14px; }
.form-table input, .form-table select { padding: 5px; border: 1px solid #ccc; border-radius: 4px; }
.btn-search { background: #ff6612; color: #fff; border: none; padding: 7px 18px; border-radius: 5px; cursor: pointer; margin-left: 8px; }
.list-head { margin: 10px 0; font-size: 15px; }
.data-list { width: 100%; border-collapse: collapse; border-top: 2px solid #2b2f3a; }
.data-list th { background: #f8f9fa; padding: 10px; border-bottom: 1px solid #e3e3e3; font-size: 14px; }
.data-list td { padding: 12px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: top; }
.data-list .center { text-align: center; }
.row-title { font-weight: 600; color: #222; }
.muted { color: #888; }
.small { font-size: 12px; }
.state-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #e9ecef; font-size: 12px; margin-bottom: 6px; }
.state-신고, .state-대기, .state-수집 { background: #d4edff; }
.state-삭제, .state-임시조치 { background: #ffe0cc; }
.state-복원 { background: #e2f7d4; }
.state-삭제거부 { background: #ffd6d6; }
.state-form { margin-top: 4px; }
.state-form select { padding: 3px; font-size: 12px; }
.state-form button { padding: 3px 8px; font-size: 12px; cursor: pointer; }
.pager { margin-top: 20px; text-align: center; }
.pager a, .pager .cur { display: inline-block; padding: 6px 11px; margin: 0 2px; border-radius: 4px; }
.pager a { background: #eef0f3; color: #555; }
.pager .cur { background: #ff6612; color: #fff; }

/* ===== 일괄작업/상세패널 ===== */
.list-head { display: flex; justify-content: space-between; align-items: center; }
.bulk-bar button, .bulk-bar select { padding: 5px 9px; font-size: 13px; margin-left: 4px; cursor: pointer; }
.btn-excel { display: inline-block; margin-left: 8px; padding: 6px 12px; background: #1d8f4e; color: #fff; border-radius: 5px; font-size: 13px; }
.btn-excel:hover { text-decoration: none; background: #157a41; }
.detail-row td { background: #f1f3f5; padding: 16px 20px; }
.detail-box { font-size: 13px; }
.detail-info { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.detail-info th { background: #e9ecef; padding: 6px 10px; text-align: left; width: 70px; border: 1px solid #dee2e6; }
.detail-info td { padding: 6px 10px; border: 1px solid #dee2e6; }
.detail-edits { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.detail-edits form { background: #fff; padding: 6px 10px; border-radius: 5px; border: 1px solid #e3e3e3; }
.detail-history, .detail-memo { margin-top: 12px; background: #fff; padding: 10px; border-radius: 5px; }
.detail-history table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.detail-history th, .detail-history td { border: 1px solid #eee; padding: 4px 8px; font-size: 12px; }
.memo-list { list-style: none; padding: 0; margin: 8px 0 0; }
.memo-list li { padding: 5px 0; border-bottom: 1px dashed #e3e3e3; }
.ajax-detail.inline { display: inline; }
.link-btn { background: none; border: none; color: #d9534f; cursor: pointer; font-size: 12px; }

/* ===== 대상/키워드 관리 ===== */
.summary { font-size: 14px; }
.btn-add { display: inline-block; margin-left: 8px; padding: 6px 14px; background: #2b2f3a; color: #fff; border-radius: 5px; font-size: 13px; }
.btn-add:hover { text-decoration: none; background: #1f232c; }
.yn-Y { background: #d4edff; padding: 3px 9px; border-radius: 4px; }
.yn-N { background: #ffd6d6; padding: 3px 9px; border-radius: 4px; }
.form-btns { text-align: center; padding-top: 24px; }
.form-btns .btn-save { background: #ff6612; color: #fff; border: none; padding: 9px 24px; border-radius: 5px; cursor: pointer; font-size: 14px; }
.form-btns .btn-cancel { display: inline-block; padding: 9px 24px; background: #868e96; color: #fff; border-radius: 5px; margin: 0 6px; }
.form-btns .btn-cancel:hover { text-decoration: none; }
.form-btns .btn-del { background: #d9534f; color: #fff; border: none; padding: 9px 24px; border-radius: 5px; cursor: pointer; font-size: 14px; }
.site-chk { display: inline-block; width: 110px; font-size: 13px; margin: 2px 0; }

/* ===== 통계/보고서/상세보강 ===== */
.total-row td { background: #ffe467; }
.stats-note { margin-top: 14px; line-height: 1.7; }
.report-content { white-space: pre-wrap; font-family: inherit; margin: 0; }
.detail-notify { margin-top: 12px; background: #fff; padding: 10px; border-radius: 5px; }
.detail-notify input, .detail-notify textarea { border: 1px solid #ccc; border-radius: 4px; padding: 3px; }
