/* web/static/css/confirmModal.css */

#acmDummy {} /* placeholder selector to keep file recognized by bundlers */

#acmDummy {}

.acm {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 210000;
  font-family: sans-serif;
}

.acm .acm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.acm .acm-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.acm .acm-header {
  padding: 12px 14px;
  background: #f6f6f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acm .acm-title {
  font-weight: 700;
}

.acm .acm-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1em;
  padding: 4px 8px;
  border-radius: 8px;
}

.acm .acm-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.acm .acm-body {
  padding: 12px 14px;
  line-height: 1.3;
}

.acm .acm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px 14px;
}

.acm .acm-actions button {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
}

.acm .acm-actions button.danger {
  background: #bc0000;
  border-color: #bc0000;
  color: #fff;
}

.dark-mode .acm .acm-dialog {
  background: var(--bg-secondary);
  color: var(--fg-primary);
  border: 1px solid var(--border);
}

.dark-mode .acm .acm-header {
  background: color-mix(in oklab, var(--bg-secondary) 80%, #000 20%);
  border-bottom: 1px solid var(--border);
}

.dark-mode .acm .acm-actions button {
  background: var(--bg-input);
  color: var(--fg-primary);
  border: 1px solid var(--border);
}

.dark-mode .acm .acm-actions button.danger {
  background: #740101;
  border-color: #740101;
  color: #fff;
}