/* ===== Componente Modal InkPages ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal__content {
  background: #fff;
  border-radius: var(--radius);
  padding: 2em 2.5em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  min-width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--color-text, #333);
}
body.theme-dark .modal__content {
  background: #232323;
  color: #fff;
}
.modal__header {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1em;
}
.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  margin-top: 1.5em;
}
.modal__btn {
  min-width: 100px;
} 

/* ===== Diálogo de Recuperação ===== */
.recovery-dialog {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.recovery-content {
  background: var(--color-bg-alt, #fff);
  border-radius: 12px;
  padding: 2em 2.5em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  min-width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--color-text, #333);
}

body.theme-dark .recovery-content {
  background: #232323;
  color: #fff;
}

.recovery-content h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1em;
  color: var(--color-text, #333);
}

.recovery-content p {
  margin-bottom: 1em;
  line-height: 1.5;
}

.recovery-summary {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
}

.recovery-summary p {
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--color-text, #333);
}

.recovery-summary ul {
  margin: 0;
  padding-left: 1.5em;
}

.recovery-summary li {
  margin-bottom: 0.25em;
  color: var(--color-text, #333);
}

.recovery-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
}

.recovery-warning p {
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--color-text, #333);
}

.recovery-warning ul {
  margin: 0;
  padding-left: 1.5em;
}

.recovery-warning li {
  margin-bottom: 0.25em;
  color: var(--color-text, #333);
}

.recovery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  margin-top: 1.5em;
}

.recovery-actions .btn {
  min-width: 120px;
  padding: 0.75em 1.5em;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recovery-actions .btn-primary {
  background: var(--color-primary, #667eea);
  color: white;
  border: none;
}

.recovery-actions .btn-primary:hover {
  background: var(--color-primary-hover, #5a6fd8);
}

.recovery-actions .secondary-btn {
  background: transparent;
  color: var(--color-text, #333);
  border: 1px solid var(--color-border, #ddd);
}

.recovery-actions .secondary-btn:hover {
  background: var(--color-bg-hover, #f5f5f5);
}

body.theme-dark .recovery-actions .secondary-btn {
  color: #fff;
  border-color: #444;
}

body.theme-dark .recovery-actions .secondary-btn:hover {
  background: #333;
}