@media only screen and (min-width: 600px) {

    .left-section {
        padding-left:260px;
    }

    .right-section {
        flex: 1;
        text-align: right;
        padding-right: 7px;
    }
}

@media only screen and (max-width: 600px) {

    .right-section {
        flex: 1;
        text-align: right;
        padding-right: 2px;
        max-width: 120px;
    }
}

/* Aplicar a fonte aos placeholders */
input::placeholder,
textarea::placeholder,
select {
    font-family: 'Open Sans', sans-serif;
}

/* Garantir que o texto dentro dos campos de entrada também use a fonte */
input,
textarea,
select {
    font-family: 'Open Sans', sans-serif;
}

.top-bar {
    color: var(--text-primary);
    background-color: var(--surface-elevated); /* Light gray background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px; /* Increased height for better visibility */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 650px) {
    .top-bar {
        border-radius: 0 0 5px 5px;
    }
}

.topbar-inner {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 100%;
}

.padding-left{
    padding-left: 20px;
}

.site-name {
    letter-spacing: -1px; /* Adjust the value as needed */
    font-size: 32px; /* Larger font size for the site name */
    cursor: pointer;
    position: fixed; /* Fix the position to the viewport */
    top: 22px; /* Align to the top */
    left: 45px; /* Align to the left */
    z-index: 1000; /* Ensure it stays above other elements */
}

@media only screen and (max-width: 1200px) {
    .map-container {
        position: relative;
        width: 100%;
        height: 700px; /* Set a fixed height for the container */
        min-height: 480px;
        max-height: calc(100vh - 120px);
        background-color: var(--surface-muted); /* Set a background color for better visibility */
    }

    .topbar-inner {
        width: 100%;
        padding: 0 8px;
    }
}

@media only screen and (min-width: 1200px) {
    .map-container {
        position: relative;
        width: 100%;
        height: 700px; /* Set a fixed height for the container */
        /* min-height: 630px; */
        max-height: calc(100vh - 85px);
        background-color: var(--surface-muted); /* Set a background color for better visibility */
    }

    .topbar-inner {
        width: 100%;
        max-width: 1260px;
    }
}

.dropdown-left {
    left: -80px;
    min-width: 120px;
}

.left-section {
    flex: 1; /* Allows the left section to grow and take up available space */
}

.right-section {
    flex: 1;
    text-align: right;
    box-sizing: border-box; /* Include padding in the element's total width */
}

.button-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-button {
    background-color: #6c757d; /* Cor neutra */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: calc(100% - 20px); /* Ajustar a largura conforme necessário */
    margin-left: 10px;
    margin-bottom: 5px; /* Espaço abaixo do botão */
}

.sidebar-button:hover {
    background-color: #5a6268; /* Cor neutra mais escura para hover */
}

.right-container {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center;
}

.message-icon-div{
    max-width: 35px;
    max-height: 35px;
    margin-top: 5px;
    cursor: pointer;
}

.menu {
    position: relative;
    display: inline-block;
}

#config-button {
    white-space: nowrap;
}

/* Adjustments for even smaller screens */
@media only screen and (max-width: 700px) {
    .button-navigation {
        background-color: transparent; /* Fundo transparente */
        color: var(--primary-color); /* Cor primária */
        padding: 10px 20px;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 4px; /* Bordas arredondadas */
        transition: background-color 0.3s ease; /* Transição suave */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: var(--surface-elevated); /* Cinza claro */
        min-width: 100%; /* Mesma largura do botão do menu */
        box-shadow: 0 18px 36px var(--shadow-color);
        font-size: 14px;
        z-index: 90000;
        top: 100%;
        border-radius: 4px; /* Bordas arredondadas */
        cursor:pointer;
        border: 1px solid var(--border-color);
    }

}

/* Adjustments for even smaller screens */
@media only screen and (min-width: 700px) {
    .button-navigation {
        background-color: transparent; /* Fundo transparente */
        color: var(--primary-color); /* Cor primária */
        padding: 10px 35px;
        border: none;
        cursor: pointer;
        font-size: 16px;
        border-radius: 4px; /* Bordas arredondadas */
        transition: background-color 0.3s ease; /* Transição suave */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: var(--surface-elevated); /* Cinza claro */
        min-width: 100%; /* Mesma largura do botão do menu */
        box-shadow: 0 18px 36px var(--shadow-color);
        font-size: 14px;
        z-index: 1;
        top: 100%;
        border-radius: 4px; /* Bordas arredondadas */
        cursor:pointer;
        border: 1px solid var(--border-color);
    }
}

.menu button:hover {
    background-color: var(--primary-color); /* Tom mais claro de azul marinho */
    color: var(--primary-contrast-text);
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease; /* Transição suave */
    border-bottom: 1px solid var(--border-color); /* Linha de separação */
}

.dropdown-content a:hover {
    color: var(--primary-contrast-text) !important; /* Azul marinho */
    background-color: var(--primary-color); /* Cinza intermediário */
}

.button-navigation:focus-visible,
.dropdown-content a:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

#config-button,
#login-button {
    color: var(--primary-color);
}

#chat-button,
#chat-button svg,
#sidebarCollapse,
#sidebarCollapse .icon2,
#sidebarCollapse .icon2 i {
    color: var(--primary-color);
}

#chat-button:hover,
#chat-button:active,
#chat-button:focus-visible,
#sidebarCollapse .icon2:hover,
#sidebarCollapse .icon2:active,
#sidebarCollapse .icon2:focus-visible {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

#chat-button:hover,
#chat-button:active,
#chat-button:focus-visible,
#chat-button:hover svg,
#chat-button:active svg,
#chat-button:focus-visible svg,
#sidebarCollapse .icon2:hover,
#sidebarCollapse .icon2:active,
#sidebarCollapse .icon2:focus-visible,
#sidebarCollapse .icon2:hover i,
#sidebarCollapse .icon2:active i,
#sidebarCollapse .icon2:focus-visible i {
    color: var(--surface-background);
}

#config-button:hover,
#config-button:active,
#config-button:focus-visible {
    color: #fff;
}

#login-button:hover,
#login-button:active,
#login-button:focus-visible {
    color: var(--primary-contrast-text);
}

.theme-toggle-button {
    min-width: 112px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface-background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.theme-toggle-button:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.theme-toggle-button .theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle-button .theme-toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
}

@media only screen and (max-width: 800px) {
    .theme-toggle-button {
        min-width: 96px;
        gap: 6px;
        padding: 10px 12px;
    }
}

/* Apenas muda a cor de fundo no hover */
.right-container .right-section {
    margin-left: 5px;
}

/* .icon2.collapsed {
    left: 12px;
} */

@media only screen and (min-width: 600px) {
    .left-section {
        padding-left: 2px;
    }
}

.icon2 {
    position: static;
    margin-top: 3px;
}

/* .top-bar{
    position:relative
} */

.site-name{
    position:static;
    padding-left: 6px;
    min-width: 170px;
}


@media only screen and (max-width: 550px) {
    .top-bar {
        height: 70px;
    }

    .icon2 {
        font-size:20px;
        margin-top: 0px;
    }
}