/**
 * Dear PM Deactivation Modal Styles
 * 
 * @package DEARPRMA
 */

.dearprma-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dearprmaFadeIn 0.2s ease-out;
}

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

@keyframes dearprmaSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dearprma-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 90%;
  animation: dearprmaSlideIn 0.3s ease-out;
  overflow: hidden;
}

.dearprma-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 32px;
  text-align: center;
}

.dearprma-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dearprma-modal-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.dearprma-modal-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.dearprma-modal-options {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dearprma-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.dearprma-option:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.dearprma-option:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.dearprma-option-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.dearprma-option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dearprma-option-content strong {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.dearprma-option-content span {
  font-size: 13px;
  color: #64748b;
}

/* Warning option */
.dearprma-option-warning:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.dearprma-option-warning:hover .dearprma-option-content strong {
  color: #b45309;
}

/* Danger option */
.dearprma-option-danger:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

.dearprma-option-danger:hover .dearprma-option-content strong {
  color: #b91c1c;
}

.dearprma-modal-footer {
  padding: 16px 24px 24px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.dearprma-btn-cancel {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.dearprma-btn-cancel:hover {
  color: #1e293b;
}

/* Loading state */
.dearprma-option.dearprma-loading {
  pointer-events: none;
  opacity: 0.7;
}

.dearprma-option.dearprma-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: dearprmaSpinner 0.6s linear infinite;
  margin-left: auto;
}

@keyframes dearprmaSpinner {
  to {
    transform: rotate(360deg);
  }
}
