/* Chat Notifications Styles */
.chat-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 300px;
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-notification.show {
  transform: translateX(0);
}

.chat-notification.hide {
  transform: translateX(400px);
}

.chat-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chat-notification-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-notification-close:hover {
  opacity: 1;
}

.chat-notification-content {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.chat-notification-sender {
  font-weight: 500;
  color: #ffd700;
}

.chat-notification-message {
  margin-top: 5px;
  word-wrap: break-word;
}

.chat-notification-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
  text-align: right;
}

/* Animation for multiple notifications */
.chat-notification:nth-child(2) {
  top: 90px;
}

.chat-notification:nth-child(3) {
  top: 160px;
}

.chat-notification:nth-child(4) {
  top: 230px;
}

/* Responsive design */
@media (max-width: 768px) {
  .chat-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .chat-notification.show {
    transform: translateY(0);
  }
  
  .chat-notification.hide {
    transform: translateY(-100px);
  }
  
  .chat-notification:nth-child(2) {
    top: 90px;
  }
  
  .chat-notification:nth-child(3) {
    top: 160px;
  }
  
  .chat-notification:nth-child(4) {
    top: 230px;
  }
}

/* Notification icon animation */
@keyframes notificationPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.chat-notification-icon {
  animation: notificationPulse 2s infinite;
}

/* Success notification variant */
.chat-notification.success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Error notification variant */
.chat-notification.error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Warning notification variant */
.chat-notification.warning {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
  color: #2c3e50;
}
