/**
 * Professional Notification System
 * Replaces browser alerts with styled notifications
 */

/* Toast Notifications - Slide down from top */
.notification-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: all;
  animation: slideDown 0.3s ease, fadeIn 0.3s ease;
  transition: all 0.3s ease;
}

.notification.removing {
  animation: slideUp 0.3s ease, fadeOut 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

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

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

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #f9f8d7;
}

.notification-message {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.5;
  color: #f9f8d7;
}

.notification-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: rgba(249, 248, 215, 0.4);
  cursor: pointer;
  font-size: 1.25rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.notification-close:hover {
  color: #f9f8d7;
  background: rgba(255, 255, 255, 0.05);
}

/* Notification Types */
.notification.success {
  border-left: 3px solid #10b981;
}

.notification.error {
  border-left: 3px solid #ef4444;
}

.notification.warning {
  border-left: 3px solid #f59e0b;
}

.notification.info {
  border-left: 3px solid #3b82f6;
}

/* Confirmation Modal */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  z-index: 10002;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-content {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.75rem;
}

.confirm-icon.warning {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.confirm-icon.info {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.confirm-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #f9f8d7;
}

.confirm-message {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
}

.confirm-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.confirm-btn-primary {
  background: linear-gradient(135deg, #e5273d 0%, #c91f33 100%);
  color: #f9f8d7;
}

.confirm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(229, 39, 61, 0.4);
}

.confirm-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f9f8d7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Loading Spinner Overlay - Removed (was confusing users) */

/* Mobile Responsive */
@media (max-width: 640px) {
  .notification-container {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  .notification {
    padding: 1rem;
  }
  
  .confirm-modal-content {
    margin: 1rem;
  }
}
