/* Backups modal, drawer indicator and permission toast -- see backups.js.
   The modal itself reuses style.css's .about-modal classes. */

.backup-attention-badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1d24;
  background: #f0b429;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.backup-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.45);
  font-size: 0.92rem;
  line-height: 1.4;
}

.backup-banner.hidden,
.backup-progress.hidden,
.backup-file-input.hidden,
.backup-toast.hidden {
  display: none;
}

.backup-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.backup-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
}

.backup-details dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.backup-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.backup-action {
  border: 1px solid rgba(255,255,255,0.18);
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.backup-action-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.backup-action-danger {
  border-color: transparent;
  color: #e0245e;
}

.backup-action:disabled {
  opacity: 0.6;
  cursor: default;
}

.backup-progress {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.backup-progress.error {
  color: #e0245e;
}

.backup-note {
  margin: 1.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.backup-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(240, 180, 41, 0.45);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.88rem;
}

.backup-toast-action {
  flex: none;
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.backup-toast-close {
  flex: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}
