/* MODAL NOTIFICATIONS SYSTEM */

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-in-out;
}

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

/* Modal Container */
.modal-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Dark mode */
.dark-mode .modal-container {
  background-color: #1f1f1f;
  color: #e5e7eb;
}

/* Modal Header */
.modal-header {
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.modal-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.modal-icon.success {
  background-color: #d1fae5;
  color: #059669;
}

.modal-icon.error {
  background-color: #fee2e2;
  color: #dc2626;
}

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

.modal-icon.info {
  background-color: #dbeafe;
  color: #3b82f6;
}

.modal-icon.question {
  background-color: #e0e7ff;
  color: #6366f1;
}

.dark-mode .modal-icon.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.dark-mode .modal-icon.error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

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

.dark-mode .modal-icon.info {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.dark-mode .modal-icon.question {
  background-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.modal-content {
  flex: 1;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.dark-mode .modal-title {
  color: #e5e7eb;
}

.modal-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  white-space: pre-wrap;
}

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

/* Modal Footer */
.modal-footer {
  padding: 16px 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-button.primary {
  background-color: #48d597;
  color: white;
}

.modal-button.primary:hover {
  background-color: #3ab881;
}

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

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

.modal-button.secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.dark-mode .modal-button.secondary {
  background-color: #374151;
  color: #d1d5db;
}

.modal-button.secondary:hover {
  background-color: #e5e7eb;
}

.dark-mode .modal-button.secondary:hover {
  background-color: #4b5563;
}
