/* Modal Alert System */
.modal-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-alert-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-alert-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 90%;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-alert-overlay.active .modal-alert-box {
  transform: scale(1);
}

.modal-alert-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modal-alert-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.modal-alert-body {
  padding: 1.5rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-alert-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-alert-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-alert-btn-primary {
  background: #3b82f6;
  color: white;
}

.modal-alert-btn-primary:hover {
  background: #2563eb;
}

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

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

.modal-alert-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.modal-alert-btn-secondary:hover {
  background: #d1d5db;
}

/* Success variant */
.modal-alert-success .modal-alert-header {
  background: #ecfdf5;
  border-bottom-color: #a7f3d0;
}

.modal-alert-success .modal-alert-icon {
  color: #10b981;
}

/* Error variant */
.modal-alert-error .modal-alert-header {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}

.modal-alert-error .modal-alert-icon {
  color: #ef4444;
}

/* Warning variant */
.modal-alert-warning .modal-alert-header {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}

.modal-alert-warning .modal-alert-icon {
  color: #f59e0b;
}

/* Confirm variant */
.modal-alert-confirm .modal-alert-header {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
}

.modal-alert-confirm .modal-alert-icon {
  color: #3b82f6;
}