/* ==========================================================================
   Diálogos e Modais
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dlg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-pop);
  animation: dlgZoom 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dlgZoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.dlg h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.dlg p {
  margin: 0 0 1.25rem;
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.dlg input[type="text"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.12s;
}

.dlg input[type="text"]:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.dlg .fim {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
