/* BizCore Shield v1.1 — Protection Styles */

/* ── Text selection prevention ──────────────────────────────────────── */
body.bcs-no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection inside form elements */
body.bcs-no-select input,
body.bcs-no-select textarea,
body.bcs-no-select select,
body.bcs-no-select [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ── Image protection ───────────────────────────────────────────────── */
body.bcs-no-imgdrag img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Transparent overlay on images to block save-as */
body.bcs-no-imgdrag img {
  -webkit-touch-callout: none;
}

/* ── Print blocking ─────────────────────────────────────────────────── */
@media print {
  body.bcs-no-print,
  body.bcs-no-print * {
    display: none !important;
    visibility: hidden !important;
  }
  body.bcs-no-print::after {
    display: block !important;
    visibility: visible !important;
    content: '이 페이지는 인쇄가 제한되어 있습니다.';
    position: fixed;
    top: 40%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
    color: #333;
  }
}

/* ── Toast notification ─────────────────────────────────────────────── */
.bcs-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 999999;
  background: rgba(15, 23, 42, 0.92);
  color: #f1f5f9;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.bcs-toast::before {
  content: '🛡️';
  margin-right: 8px;
}

.bcs-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Context menu disabled cursor ───────────────────────────────────── */
body.bcs-no-rclick {
  /* subtle: no visual change, just blocks the menu */
}
