/* Custom notification system */
.notification-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 20px 24px;
  margin-bottom: 12px;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent-green);
}

.notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notification.success {
  border-left-color: var(--accent-green);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(130, 196, 81, 0.05) 100%);
}

.notification.error {
  border-left-color: #ff6b6b;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.notification.warning {
  border-left-color: var(--accent-amber);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(250, 163, 26, 0.05) 100%);
}

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

.notification-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin-right: 12px;
}

.notification.success .notification-icon {
  background: var(--accent-green);
}

.notification.error .notification-icon {
  background: #ff6b6b;
}

.notification.warning .notification-icon {
  background: var(--accent-amber);
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
}

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

.notification-message {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.notification-progress {
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  margin-top: 12px;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background: var(--accent-green);
  border-radius: 1px;
  transition: width 0.1s linear;
}

.notification.success .notification-progress-bar {
  background: var(--accent-green);
}

.notification.error .notification-progress-bar {
  background: #ff6b6b;
}

.notification.warning .notification-progress-bar {
  background: var(--accent-amber);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .notification-container {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: calc(100vw - 20px);
    max-width: none;
  }
  
  .notification {
    padding: 14px 16px;
    margin-bottom: 8px;
  }
  
  .notification-title {
    font-size: 13px;
  }
  
  .notification-message {
    font-size: 12px;
  }
}
