/* styles/features/panico.css - Estilos del botón de pánico y toast */

.panic-button {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  min-height: 32px;
  min-width: 40px;
  background: radial-gradient(circle at 30% 30%, #ff8a80, #c62828);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s ease;
}

.panic-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

.panic-button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.panic-button__icon {
  pointer-events: none;
}

.panic-button--sending {
  background: radial-gradient(circle at 30% 30%, #ffe082, #f9a825);
  cursor: wait;
}

.panic-button--success {
  background: radial-gradient(circle at 30% 30%, #a5d6a7, #2e7d32);
}

.panic-button--error {
  background: radial-gradient(circle at 30% 30%, #ffcc80, #ef6c00);
}

.panic-toast {
  position: fixed;
  left: 50%;
  bottom: 4.3rem;
  transform: translateX(-50%);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(9, 21, 44, 0.96);
  color: #e5e7eb;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  z-index: 1399;
  max-width: 90%;
  text-align: center;
}

.panic-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1400;
}

.panic-modal {
  width: 100%;
  max-width: 420px;
  background: #020617;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid #1f2937;
}

.panic-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.panic-modal p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.panic-note-block {
  margin-bottom: 0.9rem;
}

.panic-note-block label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.panic-note {
  width: 100%;
  min-height: 52px;
  border-radius: 0.6rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  resize: vertical;
  box-sizing: border-box;
}

.panic-note:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.panic-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.panic-cancel-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: #0f172a;
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.75);
}

.panic-cancel-btn:hover {
  background: #1e293b;
}

.panic-send-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: #2563eb;
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.65);
}

.panic-send-btn:hover {
  background: #1d4ed8;
}

/* Aviso demo / beta */
.panic-demo-notice {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  color: #fde68a;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .panic-button {
    padding: 0.22rem 0.55rem;
    min-height: 30px;
    font-size: 0.9rem;
  }

  .panic-toast {
    bottom: 4rem;
    font-size: 0.8rem;
  }
}
