/* Tabby MIS Dashboard — Security Layer */

/* ── Disable text selection everywhere ── */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* ── Disable image/element dragging ── */
img, canvas, svg, a, div, span, td, th {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

/* ── Print protection: watermark appears + block content visibility ── */
@media print {
  body > *:not(.security-lock-overlay):not(.watermark-print-layer) {
    opacity: 0.15 !important;
  }

  .watermark-print-layer {
    display: flex !important;
    position: fixed !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    transform: rotate(-30deg) !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    gap: 50px 90px !important;
    padding: 40px !important;
  }

  .watermark-print-layer span {
    font-family: 'Inter Tight', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: rgba(2, 54, 32, 0.25) !important;
    letter-spacing: 1.5px !important;
    white-space: nowrap !important;
  }
}

/* ── Hidden watermark layer (only visible on print) ── */
.watermark-print-layer {
  display: none;
}

/* ── Inactivity lock overlay ── */
.security-lock-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 54, 32, 0.97);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.security-lock-overlay.active {
  display: flex;
}

.security-lock-overlay .lock-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.security-lock-overlay h2 {
  font-family: 'Inter Tight', sans-serif;
  color: #3CE8A0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.security-lock-overlay p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.security-lock-overlay .unlock-btn {
  margin-top: 12px;
  background: #3CE8A0;
  color: #023620;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.security-lock-overlay .unlock-btn:hover {
  background: #00A660;
}

/* ── Dev tools warning overlay ── */
.security-devtools-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(202, 71, 57, 0.95);
  z-index: 100001;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.security-devtools-warning.active {
  display: flex;
}

.security-devtools-warning h2 {
  font-family: 'Inter Tight', sans-serif;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.security-devtools-warning p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
}
