/* =========================================================================
   Confirmation dialog (#dialog) — used by dialog.js on every page
   ========================================================================= */
.dialog_background {
  position: fixed;
  inset: 0;
  background: var(--overlay, rgba(15, 23, 41, 0.45));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  touch-action: none;
  z-index: 8;
}

.dialog_container {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0 auto;
  width: calc(100vw - 32px);
  max-width: 460px;
  display: flex;
  flex-direction: column;
  background-color: var(--surface, #fff);
  border-radius: 22px;
  box-shadow: var(--shadow-lg, 0 24px 48px -12px rgba(16, 24, 40, 0.25));
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 9;
  animation: animated_dialog_in .18s ease-out;
}

@keyframes animated_dialog_in { from { opacity: 0; transform: translateY(-46%) scale(.98); } to { opacity: 1; transform: translateY(-50%); } }

.dialog_header {
  padding: 22px 24px 4px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text, #0f1729);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.dialog_header::before {
  content: "help";
  width: 40px;
  height: 40px;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  color: var(--primary, #3b5bdb);
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-weight: normal;
  background: var(--primary-soft, rgba(59, 91, 219, 0.1));
  border-radius: 12px;
}

.dialog_content {
  padding: 10px 24px 6px 76px;
  max-height: 65vh;
  color: var(--text-2, #4a5568);
  font-size: 14.5px;
  line-height: 1.6;
  text-align: left;
  overflow: auto;
}

.dialog_content:has(.form_input_container) { padding-left: 24px; }

.dialog_content .form_input_container { width: 100%; margin: 8px 0 12px 0; }

.dialog_footer {
  padding: 18px 24px 20px 24px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 10px;
}

.dialog_button {
  height: 40px;
  min-width: 88px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s;
}

.dialog_button.confirm { color: #fff; background: var(--grad, #6366f1); box-shadow: 0 10px 20px -12px rgba(99, 102, 241, 0.95); }

.dialog_button.confirm:hover { filter: brightness(1.07); }

.dialog_button.cancel { color: var(--text, #0f1729); background-color: var(--surface, #fff); border-color: var(--border-strong, #cfd5e2); }

.dialog_button.cancel:hover { background-color: var(--surface-3, #eef1f7); }
