/* AML Safety Index Styles */
.aml-index-container {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #f7f9fc;
}

.aml-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.aml-icon {
  margin-right: 15px;
}

.aml-icon svg {
  width: 40px;
  height: 40px;
  animation: shieldPulse 4s infinite;
}

.aml-title {
  font-weight: 700;
  font-size: 18px;
  color: #333;
}

.aml-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

.aml-indicators {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.indicator {
  margin-bottom: 5px;
}

.indicator-block {
  margin-bottom: 5px;
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.progress-bar {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
  opacity: 0;
  animation: fadeIn 0.5s 0.5s forwards;
}

/* Animations */
@keyframes shieldPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(0, 87, 255, 0.3));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 87, 255, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(0, 87, 255, 0.3));
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
  }
}

/* Анимация для индикаторов - каскадное появление */
.indicator:nth-child(1) .progress {
  animation-delay: 0.2s;
}
.indicator:nth-child(2) .progress {
  animation-delay: 0.4s;
}
.indicator:nth-child(3) .progress {
  animation-delay: 0.6s;
}
.indicator:nth-child(4) .progress {
  animation-delay: 0.8s;
}
.indicator:nth-child(5) .progress {
  animation-delay: 1s;
}
.indicator:nth-child(6) .progress {
  animation-delay: 1.2s;
}
.indicator:nth-child(7) .progress {
  animation-delay: 1.4s;
}

/* Эффект мерцания для низких показателей */
.progress[style*="width: 20%"], 
.progress[style*="width: 25%"], 
.progress[style*="width: 30%"] {
  animation: fadeInBlink 2s 0.5s forwards;
}

@keyframes fadeInBlink {
  0% {
    opacity: 0;
    width: 0;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 0.7;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
} 