.servers {
    display: block;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.servers-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgb(var(--white));
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgb(var(--gun-metal), 0.25);
    box-shadow: var(--shadow-sm);

    &:hover, &:has(~dialog[open]) {
        background: rgb(var(--gun-metal-hover));
        color: white;
        border: 1px solid rgb(var(--white));
        box-shadow: var(--shadow-md);
        cursor: pointer;

        & > .servers {
            filter: brightness(0) invert(1);
        }
    }
}

server-picker dialog {
    z-index: 10;
    position: fixed;
    inset: 0;
    width: 35vw;
    margin: auto;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0.5rem;

    &::backdrop {
      background-color: hsla(0, 0%, 0%, 0.5);
    }

    &[open] {
        display: flex;
    }
}

.dialog-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;

    & > p:first-of-type {
        font-size: 1.1rem;
    }
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.server-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    & > p:first-of-type {
        font-size: 1.07rem;
        font-weight: 600;
        color: rgb(40 56 90);
        letter-spacing: 0.02em;
        line-height: 1.17;
    }

    & > .file-path {
        font-size: 0.9rem;
        color: #6e7a91;
        font-weight: 400;
        opacity: 0.75;
        line-height: 1.14;

        &::before {
            content: "./"
        }
    }
}

.server-selector {
    margin-top: 0.25rem;
    border: 1.5px solid rgb(var(--gun-metal), 0.5);
    min-width: 0;
    width: 100%;
    padding: 0.4rem 0.3rem;
    border-radius: 0.2rem;

    &:hover {
        border-color: rgb(var(--gun-metal), 1);
        cursor: pointer;
        box-shadow: var(--shadow-md);
    }
    
    & option {
        cursor: pointer;
    }
}


.close-dialog-btn {
    width: fit-content;
    margin-left: auto;
}

.close-dialog-btn {
    background: rgb(var(--gun-metal));
    &::after { content: "" !important; }
}
