/**
 * Aprimoramentos visuais para o painel lateral da página de login
 * Adiciona animações, efeitos e elementos visuais modernos
 */

:root {
  --primary-color: #2c578a;
  --primary-light: rgba(44, 87, 138, 0.1);
  --text-color: #ffffff;
  --chart-green: #26de81;
  --chart-red: #eb3b5a;
}

/* Efeito de digitação no título */
.brand-title {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  animation: typing 2.5s steps(10, end), blink-caret 0.75s step-end infinite;
  animation-fill-mode: forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

/* Efeito melhorado para palavras rotativas */
.rotating-word {
  display: inline-block;
  opacity: 0;
  animation: fadeInOut 12s linear infinite;
  position: relative;
  margin-left: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.rotating-word:nth-child(1) { animation-delay: 0s; }
.rotating-word:nth-child(2) { animation-delay: 4s; }
.rotating-word:nth-child(3) { animation-delay: 8s; }

@keyframes fadeInOut {
  0%, 25%, 100% { opacity: 0; transform: translateY(10px); }
  5%, 20% { opacity: 1; transform: translateY(0); }
}

/* Estilização para métricas com gráficos minimalistas */
.metrics-container {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
}

.metric-item {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 30%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
  position: relative;
}

.metric-label {
  font-size: 0.8rem;
  color: #666;
}

/* Gráficos minimalistas para cada métrica */
.metric-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s ease;
}

.metric-item.animate::after {
  transform: scaleX(1);
}

/* Gráfico específico para cada métrica */
.metric-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  opacity: 0.2;
}

.accuracy-chart {
  background: linear-gradient(90deg, transparent, var(--primary-color));
}

.speed-chart {
  background-image: repeating-linear-gradient(90deg, var(--primary-color), var(--primary-color) 2px, transparent 2px, transparent 5px);
}

.volume-chart {
  background-image: linear-gradient(90deg, transparent, var(--primary-color) 50%, var(--primary-color));
}

/* Badge de segurança */
.security-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
  z-index: 10;
}

.security-badge i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(44, 87, 138, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(44, 87, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(44, 87, 138, 0);
  }
}

/* Animação de ondas removida conforme solicitação */

/* Cronômetro regressivo - Removido conforme solicitação */

/* Background de partículas de dados */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.data-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.2;
  animation: floatParticle 20s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-300px) translateX(100px);
    opacity: 0;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .metric-item {
    padding: 10px;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .security-badge {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  
  .security-badge i {
    font-size: 1.2rem;
  }
  
  .countdown-container {
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
  }
  
  .wave-container {
    height: 30px;
  }
}
