/* Toast Notification System */

.clipp-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.clipp-toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  animation: clipp-slide-in 0.3s ease-out;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Severity-specific styling */
.clipp-toast-error {
  border-left: 4px solid #e53e3e;
  background: #fff5f5;
}

.clipp-toast-warning {
  border-left: 4px solid #ff9800;
  background: #fff8e1;
}

.clipp-toast-info {
  border-left: 4px solid #2196f3;
  background: #e3f2fd;
}

/* Toast content layout */
.clipp-toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clipp-toast-message {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
  word-break: break-word;
}

.clipp-toast-error .clipp-toast-message {
  color: #742a2a;
}

.clipp-toast-warning .clipp-toast-message {
  color: #7d6608;
}

.clipp-toast-info .clipp-toast-message {
  color: #1565c0;
}

/* Buttons */
.clipp-toast-action,
.clipp-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.clipp-toast-action {
  color: #2196f3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clipp-toast-action:hover {
  background: rgba(33, 150, 243, 0.1);
  color: #1976d2;
}

.clipp-toast-close {
  color: #718096;
  font-size: 24px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-left: 12px;
}

.clipp-toast-close:hover {
  color: #2d3748;
  background: rgba(0, 0, 0, 0.05);
}

/* Dismissing animation */
.clipp-toast-dismissing {
  animation: clipp-slide-out 0.3s ease-in;
}

/* Animations */
@keyframes clipp-slide-in {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes clipp-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Responsive design */
@media (max-width: 640px) {
  .clipp-toast-container {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .clipp-toast {
    padding: 12px;
  }

  .clipp-toast-message {
    font-size: 13px;
  }
}
