/**
 * Notification System Styles
 * Toast-style notifications with animations
 */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

.notification {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 48px 16px 16px;
  min-width: 300px;
  max-width: 100%;
  pointer-events: auto;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  border-left: 4px solid #9e9e9e;
}

@media (max-width: 768px) {
  .notification {
    min-width: auto;
    width: 100%;
    transform: translateY(-20px);
  }
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .notification.show {
    transform: translateY(0);
  }
}

.notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

@media (max-width: 768px) {
  .notification.hide {
    transform: translateY(-20px);
  }
}

/* Notification Types */
.notification-success {
  border-left-color: #4caf50;
  background: #f1f8f4;
}

.notification-success .notification-title {
  color: #2e7d32;
}

.notification-error {
  border-left-color: #f44336;
  background: #fff5f5;
}

.notification-error .notification-title {
  color: #c62828;
}

.notification-warning {
  border-left-color: #ff9800;
  background: #fff8e1;
}

.notification-warning .notification-title {
  color: #e65100;
}

.notification-info {
  border-left-color: #2196f3;
  background: #e3f2fd;
}

.notification-info .notification-title {
  color: #1565c0;
}

/* Notification Content */
.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-message {
  font-size: 14px;
  line-height: 1.5;
  color: #424242;
  word-wrap: break-word;
}

.notification-error .notification-message,
.notification-success .notification-message,
.notification-warning .notification-message,
.notification-info .notification-message {
  color: #212121;
}

/* Close Button */
.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #757575;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.notification-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212121;
}

.notification-close:focus {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

/* Animation for stacking */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  @keyframes slideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideOut {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-20px);
      opacity: 0;
    }
  }
}