/* ============================================================
   ZEELCHEM™ Permanent Competitor Protection & Invisible Owner Editor
   Zero Visible Triggers for Public — 100% Unlocked for Owner Only
   ============================================================ */

/* Disable Text Selection for Public */
body.locked-mode {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Allow normal text selection & typing inside form fields */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

/* Security Alert Toast (Shown only when someone tries to copy) */
.security-alert-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(10, 22, 40, 0.96);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 380px;
}

.security-alert-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.security-toast-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* ============================================================
   OWNER LIVE EDITING MODE (Active ONLY when Owner is Logged In)
   ============================================================ */

body.admin-edit-active {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

body.admin-edit-active [contenteditable="true"] {
  outline: 1px dashed rgba(14, 165, 233, 0.4);
  transition: outline 0.2s ease, background-color 0.2s ease;
  cursor: text;
}

body.admin-edit-active [contenteditable="true"]:hover {
  outline: 2px solid #0ea5e9;
  background-color: rgba(14, 165, 233, 0.06);
}

body.admin-edit-active [contenteditable="true"]:focus {
  outline: 2px solid #38bdf8;
  background-color: rgba(14, 165, 233, 0.12);
}

/* Secret Owner Control Dock (Appears only upon secret login) */
.owner-secret-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: slideDockUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDockUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.owner-dock-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.owner-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owner-dock-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: #0ea5e9;
  color: #38bdf8;
}

.owner-dock-btn-primary {
  background: #0284c7;
  border-color: #38bdf8;
}

.owner-dock-btn-primary:hover {
  background: #0369a1;
  color: #ffffff;
}

.owner-dock-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.owner-dock-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

@media (max-width: 768px) {
  .security-alert-toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
  .owner-secret-dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
