
.indicator-item {
    color: #0B4A89;
    cursor: pointer;
    padding: 0.15em 0;
    font-size: 0.9em;
}

.fakelink {
    color: #0B4A89;
    cursor: pointer;
}

.indicator-item:hover, 
.fakelink:hover {
    text-decoration: underline;
}

.indicator-item.active {
    color: rgb(215, 110, 45);
    text-decoration: underline;
}

#hmap, #barchart {
    height: 640px;
    max-width: 100%;
    margin: 0 auto 2em;
}

div#indicators-container {
    position: relative;
    max-height: 450px; 
}

.indicator-controls {
    column-gap: 10px;
}

div#indicators {
    max-height: 400px;
    overflow-y: auto;
    border-bottom: 3px double #CCC;
    border-top: 3px double #CCC;
    padding: 1em 0;
    margin: 1em 0;
    background-color: #FFF;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

div#indicators-container {
    margin-bottom: 2em;
}

div#indicators-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Altezza dell'overlay gradient */
    pointer-events: none; /* Permette di interagire con lo scroll */
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
}

h4.category-name {
    padding-left: .75em;
    font-size: 20px;
    font-weight: bold;
}

#indicator-detail {
    display: none;
    margin-top:25px;
}

.indicator-meta {
    padding: 0.25em 0;
}

.indicator-meta span {
    font-weight: bold;
    padding-right: 5px;
}

.indicator-controls .fakelink svg {
    vertical-align: text-top;
}

#csvtable-container table {
    font-size: 0.85rem;
}

#csvtable-container table td.data-Data {
    text-align: right;
    font-family: monospace;
}

/* CSS */
.view-switcher {
    display: flex;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 auto 1em;
    position: relative;
    float: none;
}

.switcher-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.switcher-option.active {
    background-color: #ccc;
    cursor: auto;
}

.switcher-option:hover {
    background-color: #e0e0e0;
}

.cocyber-map-page {
    clear: both;
}

#desc-hide {
    display: none;
}

#desc-trigger {
    text-align: center;
}

@keyframes rotateAnimation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(180deg);
    }
  }

#desc-trigger {
    &.rotate svg {
        animation: rotateAnimation 0.25s linear 1 forwards;
    }
}

@media (min-width: 768px) {
    #hmap, #barchart {
        height: 570px;
    }
}


@media (min-width: 992px) {
    #hmap, #barchart {
        height: 570px;
    }

    #desc-trigger {
        text-align: left;
    }
}

@media (min-width: 1024px) {

    .view-switcher {
        display: flex;
        width: 200px;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
        margin: -60px 0 1em;
        position: relative;
        float: right;
    }
}

@media (min-width: 1200px) {
    #hmap, #barchart {
        height: 760px;
    }
}
