/**
 * Auto Scanner Notification Styles
 * @version 2.0.0
 */

.auto-scan-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  max-width: 400px;
  animation: slideInRight 0.4s ease-out;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: white;
}

.notification-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounce 1s ease-in-out infinite;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.95;
}

.notification-sync {
  font-size: 12px;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.auto-scan-notification.fade-out {
  animation: slideOutRight 0.3s ease-in;
  opacity: 0;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .auto-scan-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification-icon {
    font-size: 24px;
  }
  
  .notification-title {
    font-size: 16px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

/* Database sync progress indicator */
.notification-sync::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
