/**
 * Notification System Styles
 * Custom notifications in CryptoWatchDog style
 */

/* Container */
.cwdg-notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Notification */
.cwdg-notification {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(400px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}

.cwdg-notification.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Content */
.cwdg-notification-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cwdg-notification-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cwdg-notification-icon svg {
  width: 100%;
  height: 100%;
}

.cwdg-notification-body {
  flex: 1;
}

.cwdg-notification-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.cwdg-notification-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Buttons */
.cwdg-notification-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.cwdg-notification-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.cwdg-notification-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.cwdg-notification-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cwdg-notification-btn-secondary {
  background: rgba(107, 114, 128, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cwdg-notification-btn-secondary:hover {
  background: rgba(107, 114, 128, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Type variants */
.cwdg-notification-success {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(34, 197, 94, 0.2);
}

.cwdg-notification-success .cwdg-notification-icon {
  color: #22c55e;
}

.cwdg-notification-error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(239, 68, 68, 0.2);
}

.cwdg-notification-error .cwdg-notification-icon {
  color: #ef4444;
}

.cwdg-notification-warning {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(251, 191, 36, 0.2);
}

.cwdg-notification-warning .cwdg-notification-icon {
  color: #fbbf24;
}

.cwdg-notification-info {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(59, 130, 246, 0.2);
}

.cwdg-notification-info .cwdg-notification-icon {
  color: #3b82f6;
}

.cwdg-notification-confirm {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(139, 92, 246, 0.2);
}

.cwdg-notification-confirm .cwdg-notification-icon {
  color: #8b5cf6;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(400px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(400px) scale(0.8);
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cwdg-notification-container {
    top: 60px;
    right: 10px;
    left: 10px;
  }
  
  .cwdg-notification {
    min-width: auto;
    max-width: none;
  }
}
