.gradient-legend {
    position: fixed;
    bottom: 36px;
    right: 20px;
    background: rgba(11, 18, 34, 1);
    border: 1px solid #253149;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    color: white;
    font-size: 12px;
    min-width: 200px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.legend-gradient {
    height: 20px;
    background: linear-gradient(to right, #ffdc2a, #0707f4);
    border: 1px solid #3b4a6f;
    border-radius: 4px;
    margin-bottom: 6px;
    position: relative;
    cursor: crosshair;
}
.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9aa3b2;
}

#select-gradient-stat {
    color: white;
    background: rgba(11, 18, 34, 1);
    width: 100%;
    border: 1px solid #253149;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.safari-alignment-element {
    display: none;
}

/* Safari-only stylization */
@supports (hanging-punctuation: first) {
    .safari-alignment-element{
        display: initial;
    }
    #select-gradient-stat-container {
        width: auto;
        display: inline;
        border: 1px solid #253149;
        border-radius: 8px;
        padding: 8px 12px;
        text-align: center;
        margin-bottom: 8px;
    }
    #select-gradient-stat {
        -webkit-appearance: initial;
        background: transparent;
        border: transparent;
        border-radius: 0px;
        padding: 0px;
        margin-bottom: 0px;
        text-align-last: center;
    }
    #safari-dropdown-symbol {
        position: absolute;
        margin-left: -11px;
        margin-top: -7px;
        font-size: large;
        z-index: -1;
    }
}
