.timeline-info-card {
  position: absolute;
  top: 10px;
  right: 174px;
  width: max-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(var(--backdrop-filter-blur));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.timeline-info-card-header {
  display: flex;
  align-items: center;
  padding: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

.timeline-info-card-header i.fa-info-circle {
  font-size: 16px;
  margin-right: 10px;
  animation: pulse-info 2s infinite;
}

@keyframes pulse-info {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.timeline-info-card-title {
  flex: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.timeline-info-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  margin-right: 8px;
}

.timeline-info-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.timeline-info-toggle i {
  transition: transform 0.3s ease;
}

.timeline-info-card.expanded .timeline-info-toggle i {
  transform: rotate(180deg);
}

.timeline-info-card-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.timeline-info-card-close:hover {
  background: rgba(255, 100, 100, 0.8);
  transform: scale(1.05);
}

/* Camada Atual - Sempre Visível */
.timeline-info-current {
  padding: 8px;
  background: rgba(30, 60, 114, 0.05);
  border-bottom: 2px solid rgba(30, 60, 114, 0.2);
}

.timeline-info-current-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.timeline-info-current-layer {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-info-current-layer i {
  color: #fff;
  font-size: 12px;
}

.timeline-info-current-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
}

.timeline-info-current-time i {
  font-size: 18px;
  animation: pulse-clock 1.5s infinite;
}

@keyframes pulse-clock {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.timeline-info-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 16px;
}

.timeline-info-card.expanded .timeline-info-card-body {
  max-height: 400px;
  padding: 16px;
}

.timeline-info-section {
  margin-bottom: 16px;
}

.timeline-info-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-info-section-title i {
  font-size: 13px;
}

.timeline-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 6px;
  background: rgba(20, 26, 34, 0.8);
  border-radius: 6px;
  /* border-left: 3px solid #ffff; */
  transition: all 0.2s;
}


.timeline-info-item:last-child {
  margin-bottom: 0;
}

.timeline-info-label {
  font-weight: 600;
  font-size: 12px;
  color: #ffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-info-label i {
  font-size: 12px;
  color: #ffff;
}

.timeline-info-value {
  color: var(--text-primary, #ffff);
  font-weight: 600;
  font-size: 13px;
  text-align: right;
}

.timeline-info-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animação de entrada */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-info-card {
  animation: slideInRight 0.4s ease-out;
}

@media (max-width: 768px) {
  .timeline-info-card {
    width: 280px;
    right: 10px;
  }
}

/* Tema escuro */
@media (prefers-color-scheme: dark) {
  .timeline-info-current {
    background: rgba(42, 82, 152, 0.15);
    border-bottom-color: rgba(42, 82, 152, 0.3);
  }

  .timeline-info-current-label {
    color: #fff;
  }

  .timeline-info-current-time {
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.2) 0%, rgba(30, 60, 114, 0.2) 100%);
    color: #ffff;
  }

  .timeline-info-item {
    background: rgba(42, 82, 152, 0.1);
    border-left-color: #ffff;
  }

  .timeline-info-item:hover {
    background: rgba(42, 82, 152, 0.2);
  }

  .timeline-info-section-title {
    color: #fff;
  }

  .timeline-info-label {
    color: #ffff;
  }

  .timeline-info-label i {
    color: #fff;
  }
}

.layer-selected-check {
  width: 16px;
  height: 16px;
  position: relative;
  margin-right: 4px;
}

.layer-selected-check .pulse-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #4caf50;
  border-radius: 50%;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.8);
}

.layer-selected-check .pulse-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #4caf50;
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: pulse-dot-animation 1.5s ease-out infinite;
}

@keyframes pulse-dot-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
