/* Notification System Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  overflow: hidden;
}

.notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.notification-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text);
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

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

/* Notification Types */
.notification--success {
  border-left: 4px solid var(--color-success);
}

.notification--error {
  border-left: 4px solid var(--color-error);
}

.notification--warning {
  border-left: 4px solid var(--color-warning);
}

.notification--info {
  border-left: 4px solid var(--color-info);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  animation: loading-progress 1.5s infinite;
  z-index: 1;
}

@keyframes loading-progress {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loading .server-card {
  opacity: 0.7;
  pointer-events: none;
}

/* Success Flash Animation */
.success-flash {
  animation: success-flash 0.6s ease-out;
}

@keyframes success-flash {
  0% { background-color: rgba(var(--color-success-rgb), 0.1); }
  100% { background-color: transparent; }
}

/* Dark Mode Anpassungen */
[data-color-scheme="dark"] .notification {
  background: var(--color-charcoal-800);
  border-color: var(--color-gray-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-color-scheme="dark"] .notification-message {
  color: var(--color-cream-100);
}

[data-color-scheme="dark"] .notification-close {
  color: var(--color-gray-300);
}

[data-color-scheme="dark"] .notification-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .notification {
    transform: translateY(-100%);
  }
  
  .notification--visible {
    transform: translateY(0);
  }
}