/* 딩딩쿠지 네온 사이버펑크 테마 — 로고와 통일감
   Palette: deep navy/black + neon cyan + neon yellow-green + neon magenta */
:root {
  --bg-deep:        #07061a;
  --bg-grid:        #0d0a26;
  --panel:          rgba(20, 14, 50, 0.72);
  --panel-border:   rgba(95, 234, 234, 0.35);

  --neon-cyan:      #5feaea;
  --neon-cyan-soft: rgba(95, 234, 234, 0.55);
  --neon-yellow:    #c8ff3e;
  --neon-magenta:   #ff3da8;
  --neon-magenta-soft: rgba(255, 61, 168, 0.55);

  --text:           #f0f5ff;
  --text-soft:      #a8b3d4;
  --text-warm:      #ffd5e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    /* 가로 스캔라인 */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(95, 234, 234, 0.025) 2px,
      rgba(95, 234, 234, 0.025) 3px
    ),
    /* 가로/세로 격자 */
    linear-gradient(rgba(95, 234, 234, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(95, 234, 234, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    /* 라디얼 글로우 */
    radial-gradient(ellipse at 50% 0%, rgba(255, 61, 168, 0.12), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(95, 234, 234, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-grid));
  background-attachment: fixed;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* 헤더 + 로고 */
header { text-align: center; margin-bottom: 28px; }
.logo {
  display: block;
  margin: 0 auto 14px;
  width: 220px;
  max-width: 70vw;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(95, 234, 234, 0.35)) drop-shadow(0 0 24px rgba(255, 61, 168, 0.18));
}
h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(200, 255, 62, 0.6), 0 0 18px rgba(200, 255, 62, 0.35);
}
h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(95, 234, 234, 0.5);
}
.sub { margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }
.sub-small { margin: 0 0 12px; color: var(--text-soft); font-size: 12px; }

/* 카드 */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(95, 234, 234, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(95, 234, 234, 0.08);
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--neon-cyan-soft), transparent 40%, transparent 60%, var(--neon-magenta-soft));
  opacity: 0.18;
  z-index: -1;
}

.notice {
  background: rgba(255, 61, 168, 0.08);
  border: 1px solid rgba(255, 61, 168, 0.4);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-warm);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* 폼 요소 */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-soft); font-weight: 600; }
input[type=text], input[type=file] {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(95, 234, 234, 0.25);
  border-radius: 8px;
  padding: 11px 13px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=text]:focus, input[type=file]:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(95, 234, 234, 0.18), 0 0 12px rgba(95, 234, 234, 0.3);
}
input[type=file]::-webkit-file-upload-button {
  background: rgba(95, 234, 234, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(95, 234, 234, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  margin-right: 10px;
  font-size: 13px;
  cursor: pointer;
}

/* 크롭 에디터 */
.editor { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.editor-hint { margin: 0; color: var(--text-soft); font-size: 12.5px; text-align: center; }
.editor-stage {
  position: relative;
  width: 320px;
  height: 320px;
  align-self: center;
  background:
    repeating-conic-gradient(rgba(95, 234, 234, 0.05) 0% 25%, rgba(255, 61, 168, 0.03) 0% 50%) 50% / 24px 24px;
  border: 1px solid rgba(95, 234, 234, 0.2);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.editor-stage.is-dragging { cursor: grabbing; }
#editorCanvas { display: block; width: 100%; height: 100%; }
.editor-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.editor-mask::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  margin: auto;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 2px var(--neon-cyan), inset 0 0 24px rgba(95, 234, 234, 0.4);
  clip-path: circle(50% at 50% 50%);
}
.zoom-label { flex-direction: row; align-items: center; gap: 12px; }
.zoom-label span { min-width: 40px; }
.zoom-label input[type=range] {
  flex: 1;
  accent-color: var(--neon-cyan);
}

/* 버튼 */
button.ghost {
  background: rgba(95, 234, 234, 0.1);
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  align-self: flex-end;
  width: fit-content;
  border: 1px solid rgba(95, 234, 234, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
button.ghost:hover {
  background: rgba(95, 234, 234, 0.18);
  box-shadow: 0 0 12px rgba(95, 234, 234, 0.3);
}
button {
  background: linear-gradient(135deg, var(--neon-magenta), #ff7ac4);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 61, 168, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s;
  font-family: inherit;
}
button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 26px rgba(255, 61, 168, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
button:active { transform: translateY(1px); }
button:disabled { filter: grayscale(0.6) brightness(0.6); cursor: not-allowed; box-shadow: none; }

/* 상태 박스 */
.status-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(95, 234, 234, 0.2);
  font-size: 14px;
  line-height: 1.55;
}
.status-result small { color: var(--text-soft); font-size: 12px; }
.status-result.status-pending {
  border-color: rgba(200, 255, 62, 0.55);
  box-shadow: 0 0 14px rgba(200, 255, 62, 0.18);
}
.status-result.status-approved {
  border-color: rgba(95, 234, 234, 0.6);
  box-shadow: 0 0 14px rgba(95, 234, 234, 0.2);
}
.status-result.status-absent {
  border-color: rgba(255, 61, 168, 0.5);
}

/* 토스트 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 6, 26, 0.95);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 0 24px rgba(95, 234, 234, 0.4);
}
