/* NOTIFICATION SYSTEM */
.notification-container {
  position: fixed;
  top: var(--s-8);
  right: var(--s-8);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  pointer-events: none;
}

.notification {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  min-width: 300px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  animation: slideInNotification 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInNotification {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.removing {
  animation: slideOutNotification 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideOutNotification {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.notification-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.notification.success {
  border-color: var(--success);
}

.notification.success .notification-icon {
  stroke: var(--success);
}

.notification.error {
  border-color: var(--error);
}

.notification.error .notification-icon {
  stroke: var(--error);
}

.notification.info {
  border-color: #3B82F6;
}

.notification.info .notification-icon {
  stroke: #3B82F6;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--s-1);
}

.notification-message {
  font-size: var(--tiny);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.notification-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.notification-close:hover {
  color: var(--text);
}

.notification-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

@media (max-width: 640px) {
  .notification-container {
    top: var(--s-5);
    right: var(--s-5);
    left: var(--s-5);
  }
  
  .notification {
    min-width: auto;
    max-width: none;
  }
}
