/* Toast Base Styles */
.toast {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
}

/* Toast Wrapper - Gambiarra profissional */
.toast-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Toast Type Colors */
.toast-success .toast-wrapper {
  background-color: #10B981;
}

.toast-warning .toast-wrapper {
  background-color: #EF4444;
}

.toast-info .toast-wrapper {
  background-color: #F97316;
}

/* Toast Content */
.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  position: relative;
}

.toast-icon {
  color: white;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.toast-message {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
}

.toast-close {
  color: white;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 0.8;
}

.toast-close svg {
  width: 1rem;
  height: 1rem;
}

/* Progress Bar */
.toast-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
}

.toast-progress-bar {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  animation: progressBar linear forwards;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.toast-enter {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-exit {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
