/* toast-moderno.css - Sistema de notificações moderno para CPDAC Admin */

/* Container de Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
  max-width: 400px;
  width: auto;
}

/* Toast Notification */
.toast-notification {
  display: flex;
  align-items: flex-start;
  background: rgba(26, 31, 54, 0.95);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  max-width: 100%;
  position: relative;
  transform: translateX(120%);
  animation: slideIn 0.3s forwards;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  border-left: 4px solid #4e73df;
  z-index: 10000;
}

/* Toast Types */
.toast-notification.erro {
  border-left: 4px solid #e74c3c;
}

.toast-notification.sucesso {
  border-left: 4px solid #2ecc71;
}

.toast-notification.info {
  border-left: 4px solid #3498db;
}

.toast-notification.aviso {
  border-left: 4px solid #f39c12;
}

/* Toast Icon */
.toast-icon-wrapper {
  margin-right: 12px;
  flex-shrink: 0;
}

.toast-icon {
  width: 24px;
  height: 24px;
}

.toast-notification.erro .toast-icon {
  color: #e74c3c;
}

.toast-notification.sucesso .toast-icon {
  color: #2ecc71;
}

.toast-notification.info .toast-icon {
  color: #3498db;
}

.toast-notification.aviso .toast-icon {
  color: #f39c12;
}

/* Toast Content */
.toast-content {
  flex-grow: 1;
  margin-right: 24px;
}

.toast-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
}

.toast-title span {
  margin-left: 4px;
  font-weight: 400;
  opacity: 0.9;
}

.toast-message {
  font-size: 0.875rem;
  color: #e0e0e0;
  line-height: 1.4;
  margin: 0;
}

/* Toast Close Button */
.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #e0e0e0;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 20px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.toast-notification.removing {
  animation: slideOut 0.3s forwards;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .toast-container {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    max-width: 100%;
  }

  .toast-notification {
    min-width: 100%;
    margin-bottom: 8px;
    transform: translateY(100%);
    animation: slideInMobile 0.3s forwards;
  }

  @keyframes slideInMobile {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .toast-notification.removing {
    animation: slideOutMobile 0.3s forwards;
  }

  @keyframes slideOutMobile {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
      opacity: 0;
    }
  }

  .toast-content {
    margin-right: 16px;
  }

  .toast-title {
    font-size: 0.9375rem;
  }

  .toast-message {
    font-size: 0.8125rem;
  }
}
