/* 사이버 신학교 화면 초안 (2026-10-04) — 교회 홈페이지와 별개, 실제 저장·결제 없음 */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');
:root { --navy:#123a7a; --blue:#0880c0; --green:#289050; --plum:#b80878; --orange:#f88830; --ink:#1d2433; --sub:#5b6472; --line:#e6e9f0; --bg:#f6f8fb; --card:#fff; }
* { box-sizing:border-box; }
body { margin:0; font-family:'Nanum Gothic','Noto Sans KR',sans-serif; color:var(--ink); background:var(--bg); font-size:16px; line-height:1.65; word-break:keep-all; }
a { color:var(--blue); text-decoration:none; }
button { font-family:inherit; }
.preview { background:#fff8e6; border-bottom:1px solid #f1dfb0; font-size:13px; padding:8px 16px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.preview b { color:#8a5a00; }
.preview button { border:1px solid #e6cf92; background:#fff; border-radius:999px; padding:4px 12px; font-size:13px; font-weight:700; cursor:pointer; }
.preview button.on { background:#8a5a00; color:#fff; border-color:#8a5a00; }
header.top { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.top-in { max-width:1180px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; gap:16px; }
.brand { display:flex; align-items:center; gap:10px; cursor:pointer; flex-shrink:0; }
.brand img { width:38px; height:38px; }
.brand b { font-size:17px; font-weight:800; line-height:1.2; }
.brand small { display:block; font-size:11px; color:var(--sub); font-weight:700; letter-spacing:.06em; }
nav.main { display:flex; gap:4px; flex:1; overflow-x:auto; scrollbar-width:none; }
nav.main::-webkit-scrollbar { display:none; }
nav.main a { padding:8px 12px; border-radius:8px; color:var(--ink); font-weight:800; font-size:15px; white-space:nowrap; }
nav.main a.on, nav.main a:hover { background:#eaf4fa; color:var(--blue); }
nav.main a .lock { font-size:11px; color:#9aa3b2; margin-left:3px; }
.auth { display:flex; gap:6px; flex-shrink:0; }
.btn { display:inline-block; border:0; border-radius:10px; padding:10px 18px; font-weight:800; font-size:15px; cursor:pointer; background:var(--blue); color:#fff; }
.btn.ghost { background:#fff; color:var(--blue); border:1.5px solid var(--blue); }
.btn.gray { background:#eef1f5; color:var(--ink); }
.btn.green { background:var(--green); } .btn.plum { background:var(--plum); } .btn.sm { padding:6px 12px; font-size:13px; border-radius:8px; }
.btn[disabled] { opacity:.45; cursor:not-allowed; }
main { max-width:1180px; margin:0 auto; padding:24px 16px 60px; }
.layout { display:grid; grid-template-columns:220px 1fr; gap:24px; align-items:start; }
.side { background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; position:sticky; top:84px; }
.side h4 { margin:6px 10px 8px; font-size:13px; color:var(--sub); letter-spacing:.08em; }
.side a { display:block; padding:9px 12px; border-radius:8px; color:var(--ink); font-weight:700; font-size:15px; }
.side a.on { background:#eaf4fa; color:var(--blue); }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; margin-bottom:18px; }
.eb { font-size:12px; font-weight:800; letter-spacing:.18em; color:var(--blue); }
h1.ttl { font-size:30px; margin:4px 0 6px; font-weight:800; line-height:1.25; }
p.lead { color:var(--sub); margin:0 0 14px; }
h2 { font-size:21px; margin:22px 0 10px; font-weight:800; }
h3 { font-size:17px; margin:0; font-weight:800; }
.muted { color:var(--sub); font-size:14px; }
.tag { display:inline-block; font-size:12px; font-weight:800; padding:2px 8px; border-radius:6px; background:#eef1f5; color:var(--sub); }
.tag.blue { background:#eaf4fa; color:var(--blue); } .tag.green { background:#eaf6ee; color:var(--green); } .tag.plum { background:#fbeaf4; color:var(--plum); } .tag.orange { background:#fff1e4; color:#c5641a; }
.tbd { display:inline-block; font-size:12px; font-weight:800; padding:2px 8px; border-radius:6px; background:#fff1e4; color:#c5641a; border:1px dashed #f3b47d; }
table.t { width:100%; border-collapse:collapse; font-size:15px; }
table.t th, table.t td { padding:11px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
table.t th { background:#f7f8fa; font-weight:800; font-size:14px; color:var(--sub); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.item { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff; }
.bar { width:36px; height:4px; border-radius:2px; margin-bottom:10px; background:var(--blue); }
.hero { background:linear-gradient(135deg,#eaf4fa,#f3f8fc); border-radius:18px; padding:44px 28px; margin-bottom:22px; }
.hero h1 { font-size:36px; margin:6px 0 10px; line-height:1.25; }
.hero .slogan { font-size:18px; color:var(--navy); font-weight:800; }
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; counter-reset:s; }
.steps div { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; font-weight:800; }
.steps div::before { counter-increment:s; content:counter(s); display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:13px; margin-right:8px; }
.prog { height:10px; background:#eef1f5; border-radius:99px; overflow:hidden; }
.prog i { display:block; height:100%; background:var(--green); border-radius:99px; }
.player { background:#0d1726; border-radius:14px; aspect-ratio:16/9; display:grid; place-items:center; color:#fff; position:relative; overflow:hidden; }
.player .pbar { position:absolute; left:0; right:0; bottom:0; height:6px; background:rgba(255,255,255,.2); }
.player .pbar i { display:block; height:100%; background:var(--orange); }
.player .ptime { position:absolute; left:14px; bottom:14px; font-size:13px; opacity:.85; }
.flow { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.flow span { padding:6px 12px; border-radius:999px; background:#eef1f5; font-weight:800; font-size:13px; }
.flow span.on { background:var(--blue); color:#fff; }
.flow em { color:#9aa3b2; font-style:normal; }
.notice-box { background:#fff8e6; border:1px solid #f1dfb0; border-radius:12px; padding:14px 16px; font-size:14px; }
.lockbox { text-align:center; padding:50px 20px; }
.lockbox .ic { font-size:40px; }
form.f { display:grid; gap:12px; max-width:460px; }
form.f label { font-weight:800; font-size:14px; }
form.f input, form.f select, form.f textarea { width:100%; padding:11px 12px; border:1px solid #d5dae3; border-radius:10px; font:inherit; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#1d2433; color:#fff; padding:12px 20px; border-radius:12px; font-weight:700; font-size:14px; z-index:50; opacity:0; transition:opacity .2s; pointer-events:none; }
.toast.show { opacity:1; }
footer { border-top:1px solid var(--line); background:#fff; padding:22px 16px; font-size:13px; color:var(--sub); text-align:center; }
@media (max-width: 860px) {
  .top-in { flex-wrap:wrap; gap:8px; } nav.main { order:3; flex-basis:100%; }
  .layout { grid-template-columns:1fr; }
  .side { position:static; display:flex; gap:6px; overflow-x:auto; padding:8px; }
  .side h4 { display:none; } .side a { white-space:nowrap; }
  .hero { padding:30px 18px; } .hero h1 { font-size:27px; } h1.ttl { font-size:24px; }
  .card { padding:18px; }
  table.t { font-size:14px; } table.t th, table.t td { padding:9px 6px; }
}
/* 단계 박스 (2026-10-04) */
.tasks { display:grid; gap:12px; }
.task { border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:#fff; margin-top:12px; }
.tasks .task { margin-top:0; }
.task.mine { border-color:#f3b47d; background:#fffaf4; }
.task-h { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.task-a { margin-top:10px; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
ol.stp { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:18px 22px; }
.st { position:relative; display:flex; flex-direction:column; gap:3px; min-width:104px; padding:10px 12px 10px; border:1.5px solid var(--line); border-radius:10px; background:#f7f8fa; color:#8a93a2; }
.st:not(:last-child)::after { content:'›'; position:absolute; right:-16px; top:50%; transform:translateY(-50%); color:#b3bac6; font-size:20px; font-weight:800; }
.st .no { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:800; background:#e3e7ee; color:#7a8494; }
.st b { font-size:14px; line-height:1.35; color:inherit; }
.st .who { font-size:11px; font-weight:800; color:#7a8494; }
.st .who.green { color:var(--green); } .st .who.plum { color:var(--plum); } .st .who.orange { color:#c5641a; } .st .who.blue { color:var(--blue); }
.st .now { position:absolute; top:-9px; right:8px; font-size:11px; font-weight:800; padding:1px 7px; border-radius:6px; background:var(--blue); color:#fff; }
.st.done { background:#eaf6ee; border-color:#bfe2cb; color:var(--ink); }
.st.done .no { background:var(--green); color:#fff; }
.st.cur { background:#eaf4fa; border-color:var(--blue); color:var(--ink); box-shadow:0 0 0 3px rgba(8,128,192,.12); }
.st.cur .no { background:var(--blue); color:#fff; }
.st.rej { background:#fbeaf4; border-color:var(--plum); color:var(--ink); }
.st.rej .no, .st.rej .now { background:var(--plum); color:#fff; }
@media (max-width: 860px) {
  ol.stp { flex-direction:column; gap:8px; }
  .st { flex-direction:row; align-items:center; gap:10px; min-width:0; padding:9px 12px; }
  .st:not(:last-child)::after { content:'⌄'; right:auto; left:22px; top:auto; bottom:-15px; transform:none; font-size:14px; }
  .st .who { margin-left:auto; }
  .st .now { position:static; }
}
.filebox { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border:1.5px dashed #c9d1dc; border-radius:10px; padding:12px; background:#fafbfd; }
.filebox input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.filebox label.btn { margin:0; }
/* 전자결재 (2026-10-05) */
.mp-like-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:6px; }
.mp-like-tabs a { padding:8px 12px; font-weight:800; font-size:14px; color:var(--sub); border-bottom:3px solid transparent; }
.mp-like-tabs a.on { color:var(--blue); border-bottom-color:var(--blue); }
.mp-like-tabs .cnt { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#c5641a; color:#fff; font-size:12px; }
.doclist { display:grid; }
.docrow { display:block; padding:12px 4px; border-bottom:1px solid var(--line); color:var(--ink); }
.docrow:hover { background:#f7fafd; }
.docrow-h { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:2px; }
.fileline { display:flex; align-items:center; gap:8px; flex-wrap:wrap; border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#fff; }
.fileline .fn { flex:1; min-width:140px; word-break:break-all; }
.fileline .ext { font-size:11px; font-weight:800; background:#eef1f5; color:var(--sub); border-radius:6px; padding:2px 6px; }
.fileline select { padding:6px 8px; border:1px solid #d5dae3; border-radius:8px; font:inherit; }
.docbody { background:#fafbfd; border:1px solid var(--line); border-radius:12px; padding:16px; line-height:1.8; }
.dv-ov { position:fixed; inset:0; background:rgba(15,20,30,.55); z-index:60; display:grid; place-items:center; padding:16px; }
.dv-ov[hidden] { display:none; }
.dv-box { background:#fff; border-radius:14px; width:min(960px, 100%); height:min(92vh, 100%); display:flex; flex-direction:column; overflow:hidden; }
.dv-h { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); }
.dv-h b { word-break:break-all; }
.dv-c { flex:1; overflow:auto; padding:16px; background:#eef1f5; -webkit-overflow-scrolling:touch; }
.dv-page { display:block; margin:0 auto 12px; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.15); max-width:100%; }
.dv-txt { white-space:pre-wrap; background:#fff; padding:16px; border-radius:8px; font-family:inherit; margin:0; }
.dv-doc { background:#fff; padding:24px; border-radius:8px; max-width:820px; margin:0 auto; line-height:1.8; }
.dv-doc table { border-collapse:collapse; } .dv-doc td, .dv-doc th { border:1px solid #ccc; padding:4px 6px; }
.dv-hwp { background:#fff; overflow:auto; }
.dv-ov { overscroll-behavior:contain; }
html.dv-open .dv-c { overscroll-behavior:contain; }
/* ===== 모바일 정리 (2026-10-05) ===== */
@media (max-width: 640px) {
  body { font-size:15px; }
  main { padding:16px 12px 48px; }
  .card { padding:16px 14px; border-radius:12px; }
  h1.ttl { font-size:22px; } h2 { font-size:18px; margin:18px 0 8px; }
  p.lead { font-size:14px; }
  /* 표 → 카드 */
  table.t, table.t tbody, table.t tr, table.t td { display:block; width:100%; }
  table.t thead { display:none; }
  table.t tr { border:1px solid var(--line); border-radius:12px; padding:6px 12px; margin-bottom:10px; background:#fff; }
  table.t td { display:flex; justify-content:space-between; align-items:center; gap:12px; border:0; border-bottom:1px dashed #edf0f4; padding:8px 0; text-align:right; min-height:36px; word-break:keep-all; overflow-wrap:anywhere; }
  table.t td:last-child { border-bottom:0; }
  table.t td::before { content:attr(data-label); font-weight:800; color:var(--sub); font-size:13px; text-align:left; flex-shrink:0; max-width:42%; }
  table.t td[data-label=""] { justify-content:flex-end; }
  table.t td[data-label=""]::before { display:none; }
  table.t td > div { flex:1; max-width:62%; }
  table.t td input { max-width:90px; }
  /* 터치하기 쉬운 크기 */
  .btn { min-height:44px; }
  .btn.sm { min-height:38px; padding:8px 14px; font-size:14px; }
  form.f input, form.f select, form.f textarea, select, td input { min-height:42px; font-size:16px; }
  .preview button { min-height:34px; }
  .task-a .btn, .task-a .btn.sm { flex:1 1 auto; text-align:center; }
  .task-a { gap:8px; }
  /* 단계 박스 글자 */
  .st .who, .st .now, .fileline .ext, .tag { font-size:12px; }
  .st b { font-size:15px; }
  /* 파일 줄 */
  .fileline { gap:8px; }
  .fileline .fn { flex-basis:100%; }
  .fileline .btn { flex:1; text-align:center; }
  .fileline select { flex:1; min-height:42px; }
  .filebox { flex-direction:column; align-items:stretch; }
  .filebox label.btn { text-align:center; }
  .filebox #up_info, .filebox #dc_upmsg { word-break:break-all; }
  /* 문서함 */
  .mp-like-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .mp-like-tabs::-webkit-scrollbar { display:none; }
  .mp-like-tabs a { white-space:nowrap; padding:10px 12px; }
  .docrow-h { flex-wrap:wrap; }
  .notice-box select { min-height:40px; }
  .dv-ov { padding:0; }
  .dv-box { border-radius:0; height:100%; }
  .steps { grid-template-columns:1fr; }
  .hero h1 { font-size:24px; }
  .grid { grid-template-columns:1fr; }
}
.layout > div, .layout > aside, .card, .doclist, .docrow { min-width:0; }
.docrow-h b { min-width:0; overflow-wrap:anywhere; }
@media (max-width: 640px) {
  /* 초안 안내 띠: 한 줄 가로 스크롤 */
  .preview { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:8px 12px; gap:6px; }
  .preview::-webkit-scrollbar { display:none; }
  .preview .pv-note { display:none; }
  .preview b, .preview button { flex-shrink:0; white-space:nowrap; }
  .preview button[onclick*="reset"] { margin-left:0 !important; }
  /* 한 줄형 표 (주차 목록 등) */
  table.t.compact tr { display:flex; align-items:center; gap:10px; padding:8px 12px; margin-bottom:6px; }
  table.t.compact td { display:block; width:auto; border:0; padding:0; min-height:0; text-align:left; }
  table.t.compact td::before { display:none; }
  table.t.compact td:nth-child(1) { flex:0 0 auto; font-weight:800; }
  table.t.compact td:nth-child(2) { flex:1; max-width:none; }
  table.t.compact td:nth-child(2) > div { max-width:none; }
  table.t.compact td:last-child { flex:0 0 auto; }
  /* 헤더 정리 */
  .top-in { padding:10px 12px; }
  .brand b { font-size:16px; }
  .auth .tag { font-size:12px; }
}
@media (max-width: 640px) {
  /* 상단: 학교 이름 + 로그인 표시는 항상 한 줄, 메뉴는 그 아래 한 줄 (역할마다 높이가 달라지지 않게) */
  .top-in { flex-wrap:wrap; row-gap:6px; }
  .brand { flex:1 1 0; min-width:0; }
  .brand > div { min-width:0; }
  .brand b, .brand small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .auth { flex:0 0 auto; margin-left:auto; align-items:center; }
  .auth .long { display:none; }
  .auth .btn.sm { min-height:36px; padding:6px 12px; }
  nav.main { order:3; flex-basis:100%; }
}
/* 알림 종 (2026-10-05 초안) */
.notif { position:relative; flex-shrink:0; }
.notif .bell { position:relative; border:1px solid var(--line); background:#fff; border-radius:10px; width:40px; height:38px; font-size:18px; cursor:pointer; }
.notif .bell-n { position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#d93a3a; color:#fff; font-size:12px; font-weight:800; display:grid; place-items:center; }
.notif .bell-panel { position:absolute; right:0; top:46px; width:min(360px, calc(100vw - 24px)); max-height:70vh; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(20,30,50,.15); z-index:40; }
.notif .bell-panel[hidden] { display:none; }
.notif .bell-h { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); }
.notif .bell-i { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; padding:10px 12px; border-bottom:1px solid #f0f2f6; color:var(--ink); }
.notif .bell-i:hover { background:#f7fafd; }
.notif .bell-t { flex:1 1 60%; min-width:0; overflow-wrap:anywhere; font-weight:700; }
.notif .bell-note { font-size:12px; padding:10px 12px; margin:0; }
@media (max-width:640px) { .notif { order:2; } .auth { order:2; } nav.main { order:3; } .notif .bell-panel { position:fixed; left:12px; right:12px; top:110px; width:auto; } }

/* 2026-10-05 아이콘을 교회 홈페이지 스타일(채운 단색 SVG)로, 로고 제거 */
.notif .bell { display:grid; place-items:center; color:#5b6472; font-size:0; }
.notif .bell:hover { color:var(--green); border-color:#b9e0c8; background:#f3faf6; }
.lock svg { vertical-align:-1px; margin-left:3px; color:#9aa3b0; }
.lockbox .ic { color:#9aa3b0; }
.brand b { font-size:19px; letter-spacing:.01em; color:var(--green); }

/* 2026-10-05 로고 = 'BCA' 글자, 진청색 */
.bca-logo { font-family:Georgia,'Times New Roman',serif; font-weight:900; font-size:26px; letter-spacing:.04em; color:#0f2a5c; line-height:1; }
.brand b { color:#0f2a5c; font-size:15px; font-weight:700; }
@media (max-width:768px) { .bca-logo { font-size:23px; } .brand b { font-size:13px; } }

/* 2026-10-05 역할 표시: 박스 빼고 머리 위 색 띠 + 로고 아래 색 글자 (학생 초록·교수 파랑·관리자 주황·최고관리자 자주) */
body { --role:transparent; }
body[data-role="student"] { --role:#289050; } body[data-role="prof"] { --role:#0880c0; }
body[data-role="admin"] { --role:#e07a1f; } body[data-role="super"] { --role:#b80878; }
header.top { border-top:4px solid var(--role); }
.brand small.role-line { display:block; font-size:12px; font-weight:700; letter-spacing:0; color:var(--role); line-height:1.3; }
.brand small.role-line:empty { display:none; }
.auth .btn.sm, .notif .bell { height:38px; min-height:38px; box-sizing:border-box; }
.auth .btn.sm { display:inline-flex; align-items:center; padding:0 14px; }

/* 2026-10-05 BCA 로고 굵은 고딕체 */
.bca-logo { font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif; font-weight:900; letter-spacing:.02em; }

/* 2026-10-05 글꼴을 교회 홈페이지와 동일하게 (나눔고딕 → 맑은고딕 순, 메뉴 700·제목 800) */
body, button, input, select, textarea { font-family:"Nanum Gothic", NanumGothic, "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif; }
nav.main a { font-weight:700; }
h1, h2, h1.ttl { font-weight:800; }
