/* Confirm Modal Styles */

/* ==================== BACKDROP & CONTAINER ==================== */
.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 3000; /* Higher than all other modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.confirm-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid #e5e7eb;
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.confirm-modal-backdrop.active .confirm-modal-container {
  transform: scale(1);
}

/* ==================== ICON ==================== */
.confirm-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.confirm-modal-icon.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.confirm-modal-icon.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.confirm-modal-icon.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.confirm-modal-icon .material-symbols-outlined {
  font-size: 28px;
}

/* ==================== CONTENT ==================== */
.confirm-modal-content {
  text-align: center;
  width: 100%;
}

.confirm-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.confirm-modal-message {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ==================== ACTIONS ==================== */
.confirm-modal-actions {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 0.75rem;
  width: 100%;
}

.confirm-modal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.confirm-modal-btn--cancel {
  color: #374151;
  background-color: white;
  border-color: #d1d5db;
}

.confirm-modal-btn--cancel:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.confirm-modal-btn--confirm {
  color: white;
  background-color: #2e9850;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.confirm-modal-btn--confirm:hover {
  background-color: #216d39;
}

.confirm-modal-btn--confirm:active {
  transform: scale(0.98);
}

.confirm-modal-btn--confirm.danger {
  background-color: #ef4444;
}

.confirm-modal-btn--confirm.danger:hover {
  background-color: #dc2626;
}

/* ==================== DARK MODE ==================== */
.dark .confirm-modal-container {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .confirm-modal-title {
  color: white;
}

.dark .confirm-modal-message {
  color: #9ca3af;
}

.dark .confirm-modal-btn--cancel {
  background-color: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.dark .confirm-modal-btn--cancel:hover {
  background-color: #4b5563;
}
