﻿/* Estilos globais */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-btn.active {
  border-bottom-color: #4f46e5;
  color: #4f46e5;
  background-color: #eef2ff;
}

.main-tab.active {
  color: #4f46e5;
  border-bottom: 2px solid #4f46e5;
  background-color: rgba(238, 242, 255, 0.5);
}

*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.spinner {
  border: 3px solid #e2e8f0;
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.toast.success {
  background-color: #10b981;
}

.toast.error {
  background-color: #ef4444;
}

.toast.warning {
  background-color: #f59e0b;
}

/* Feedback visual para campos inválidos */
input:invalid, textarea:invalid, select:invalid {
  border-color: #ef4444;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease-in-out;
}

/* Animação para botões */
button:active {
  transform: scale(0.98);
}

/* Estilos para tooltips */
.tippy-box[data-theme~='light'] {
  background-color: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tippy-box[data-theme~='light'] .tippy-arrow {
  color: white;
}

.tippy-box[data-theme~='light'][data-placement^='top'] .tippy-arrow::before {
  border-top-color: #e2e8f0;
}
