@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --node-normal-color: #3fa7d6;
    --node-web-color: #ee6352;
    --node-anchor-color: #59cd90;
    --link-normal-color: #9f9d9d;
    --link-selected-color: #fac05e;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    overflow: hidden;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-icon{
    font-size: 1.5rem;
    cursor: pointer;
}

#graph-container {
    width: 100vw;
    height: calc(100vh - 56px);
}

#graph{
    width: 100%; 
    height: 100%;
}

#node-info {
    overflow-y: auto; 
    display: none;
    width: 400px; /* Imposta la larghezza desiderata, puoi cambiarla */
    flex: 0 0 auto; /* Impedisce che il pannello cresca oltre la larghezza impostata */
}

.link-item:hover:not(.active) {
    background-color: #f0f0f0;
    text-decoration: underline;
  }  

.link-item.active {
    color: black;
    background-color: #f0f0f0;
    border-color: var(--bs-list-group-border-color);
    text-decoration: underline;
    font-style: italic;
}  

#tooltip{
    position: absolute; 
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 5px; 
    border-radius: 5px; 
    display: none; 
    pointer-events: none;
}

/* Stile uniforme per tutte le tooltip Bootstrap */
.tooltip-inner {
    background-color: #333; /* Colore di sfondo */
    color: #fff;            /* Colore del testo */
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
  }
  
  .tooltip.bs-tooltip-top .arrow::before,
  .tooltip.bs-tooltip-bottom .arrow::before,
  .tooltip.bs-tooltip-left .arrow::before,
  .tooltip.bs-tooltip-right .arrow::before {
    background-color: #333; /* Colore della freccia */
  }
  

#searchInput{
    width: 0; 
    opacity: 0; 
    transition: width 0.3s ease, opacity 0.3s ease;
}

/* Impostazioni di transizione per l'immagine */
#search-icon {
    transition: transform 0.3s ease;
    cursor: pointer;
  }

/* Quando il contenitore è attivo, l'immagine viene zoomata e il box di ricerca viene mostrato */
#search-container.active #search-icon {
    transform: scale(1.1); /* Zoom del 20% */
}

svg {
    width: 100%;
    height: 100%;
}

i{
    transition: transform 0.3s ease;
}
i:hover{
    transform: scale(1.2);
}

/*LINKS*/
.link {
    stroke: var(--link-normal-color);
    stroke-width: 2px;
}

.link.highlighted {
    stroke-width: 5px;
}

.link.selected{
    stroke: #fac05e;
    stroke-width: 8px;
}

/*NODES*/
.node {
    stroke-width: 2px;
    cursor: pointer;
}

.node.normal-node{
    fill: var(--node-normal-color);
}

.node.node.normal-node.selected {
    stroke: var(--node-normal-color);
    stroke-width: 8px;
}

.node.anchor-node{
    fill: var(--node-anchor-color);
}

.node.anchor-node.selected {
    stroke: var(--node-anchor-color);
    stroke-width: 8px;
}

.node.web {
    fill: var(--node-web-color);
}

.node.web.selected {
    stroke: var(--node-web-color);
    stroke-width: 8px;
}

.bold-label {
    font-weight: bold;
    font-size: 14px;
    fill: black;
}