.input-area .file-preview {
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
  margin-bottom: 0;
}

.input-area .file-preview.active {
  opacity: 1;
  margin-bottom: 1px;
  margin-top: 13px;
}

.input-area .file-preview .preview-item {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.input-area .file-preview .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.input-area .file-preview .remove-btn {
  position: absolute;
  z-index: 3;
  width: 20px;
  height: 20px;
  top: 5px;
  right: 5px;
  border: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 20px; /* no topo */
  left: 50%; /* centralizado horizontalmente */
  transform: translateX(-50%); /* ajusta para o centro real */
  padding: 12px 24px;
  border-radius: 4px;
  color: white;
  z-index: 9999;
  opacity: 0;
  animation: fade-in 0.3s forwards;
}

.toast-error { background-color: #ff4444; }
.toast-warning { background-color: #ffbb33; color: #333; }
.toast-info { background-color: #33b5e5; }
.toast-success { background-color: #00C851; color: #fff; }

.fade-out {
  animation: fade-out 0.3s forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fade-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -20px); }
}
