/**
 * MemGraph Explorer - Sidebar
 * Estilos da barra lateral com estatísticas e navegação
 */

/* Status de Conexão */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #95a5a6;
  animation: pulse 2s infinite;
}

.status-dot.connected {
  background: #2ecc71;
}

.status-dot.disconnected {
  background: #e74c3c;
}

.status-dot.error {
  background: #f39c12;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: var(--explorer-fs-sm);
  font-weight: 500;
}

/* Estatísticas */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 7px;
  background: rgba(62, 194, 110, 0.08);
  border-radius: 6px;
}

.stat-item--total {
  margin-top: 8px;
}

.stat-label {
  font-size: var(--explorer-fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.stat-value {
  font-size: var(--explorer-fs-md);
  font-weight: 600;
  color: var(--pli-green, #3ec26e);
}

/* Listas de Tipos */
.type-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.type-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.type-item:hover {
  background: rgba(17, 101, 147, 0.2);
  transform: translateX(5px);
}

.type-item.active {
  background: rgba(17, 101, 147, 0.3);
  border-left: 3px solid var(--pli-blue, #116593);
  padding-left: 4px;
}

/* Dot colorido ao lado do tipo de entidade */
.type-color-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* Barra colorida ao lado do tipo de relacionamento (representa a aresta) */
.type-color-line {
  width: 14px;
  height: 3px;
  min-width: 14px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
  align-self: center;
}

/* Botão colapsar/expandir lista de tipos de relacionamentos */
.edge-types-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pli-green, #3ec26e);
  border: 1px dashed rgba(62, 194, 110, 0.45);
  border-radius: 6px;
  font-size: var(--explorer-fs-xs, 10px);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.edge-types-toggle:hover {
  background: rgba(62, 194, 110, 0.12);
  border-color: rgba(62, 194, 110, 0.8);
  color: #ffffff;
}
.edge-types-toggle i {
  font-size: 10px;
}

.type-name {
  font-size: var(--explorer-fs-sm);
  font-weight: 500;
}

.type-count {
  font-size: var(--explorer-fs-2xs);
  background: rgba(17, 101, 147, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--pli-green, #3ec26e);
}

.saved-queries-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.saved-query-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-query-item .query-name {
  flex: 1;
  min-width: 0;
}

.saved-query-item .query-tag {
  margin-left: 8px;
}

.empty-message {
  text-align: center;
  color: #7f8c8d;
  font-size: var(--explorer-fs-sm);
  padding: 6px 5px;
  font-style: italic;
}

/* Dicas de Uso */
.tips-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 6px 5px;
  background: rgba(62, 194, 110, 0.08);
  border-left: 3px solid var(--pli-green, #3ec26e);
  border-radius: 4px;
  font-size: var(--explorer-fs-sm);
  line-height: 1.4;
}

.tip-item i {
  color: var(--pli-green, #3ec26e);
  margin-top: 2px;
  font-size: var(--explorer-fs-md);
  min-width: 14px;
}

.tip-item span {
  color: rgba(255, 255, 255, 0.8);
}
