/**
 * Estilos do Sistema de Erros
 * Compatível com dark mode
 */

/* Container principal */
.error-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 400px;
  transition: opacity 0.3s ease;
}

.error-screen.hidden {
  display: none;
}

/* Fullscreen (quando não está em container específico) */
.error-screen.error-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--fundo, #0d1117);
  z-index: 1000;
  min-height: 100vh;
}

/* Conteúdo do erro */
.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  animation: error-fade-in 0.4s ease;
}

/* Ícone */
.error-icon {
  font-size: 80px;
  color: var(--texto-fraco, #8b949e);
  margin-bottom: 24px;
  opacity: 0.6;
}

/* Título */
.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--texto, #e6edf3);
  margin: 0 0 12px 0;
}

/* Mensagem */
.error-message {
  font-size: 15px;
  color: var(--texto-fraco, #8b949e);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

/* Botão de ação */
.btn-error-action {
  background-color: var(--primaria, #06b6d4);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-error-action:hover {
  background-color: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-error-action:active {
  transform: translateY(0);
}

/* Estado vazio (não é erro, mas usa o mesmo layout) */
.error-screen.error-empty-state .error-icon {
  color: var(--primaria, #06b6d4);
  opacity: 0.4;
}

.error-screen.error-empty-state .error-title {
  color: var(--texto-fraco, #8b949e);
}

/* Animação de entrada */
@keyframes error-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .error-screen {
    padding: 32px 16px;
    min-height: 300px;
  }

  .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
  }

  .error-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .error-message {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .btn-error-action {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* Variações de cor por tipo de erro */
.error-screen.error-network .error-icon {
  color: var(--alerta, #f59e0b);
}

.error-screen.error-unauthorized .error-icon {
  color: var(--erro, #ef4444);
}

.error-screen.error-not-found .error-icon {
  color: var(--texto-fraco, #8b949e);
}
