.pointer{
    cursor: pointer;
}

#painel-legenda:active {
  cursor: grabbing;
}

/* ============================== */
/* VARIÁVEIS */
/* ============================== */
:root {
    --gray-500: #525252;
    --gray-700: #333333;
    --gray-750: #2f2f2f;
    --gray-800: #212121;
    --gray-900: #171717;
    --white: #fff;
    --black: #000;
    --blue: #0d6efd;
}

/* ============================== */
/* ESTILO GERAL DO BODY */
/* ============================== */
body.dark {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-900);
    color: var(--white);
}

/* ============================== */
/* TOPO (TOOLBAR) */
/* ============================== */
.topbar {
    background-color: var(--gray-800);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* mudou de flex-end para space-between */
    align-items: center;
    height: 60px;
    border-bottom: 1px solid var(--gray-750);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Estilo da logo à esquerda */
.topbar-logo img.logo-img {
    height: 40px;
    max-height: 100%;
    object-fit: contain;
}

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    outline: none;
}

/* Agrupa o texto e avatar */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-text #nome-usuario {
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
}

.user-text #empresa-usuario {
    font-size: 12px;
    color: #ccc;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--gray-700);
}

/* Dropdown customizado */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--gray-800);
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--gray-700);
}

.dropdown-content.show {
    display: block;
}

/* Responsividade */
@media (max-width: 600px) {
    .user-text #nome-usuario {
        font-size: 12px;
    }
    .user-text #empresa-usuario {
        font-size: 10px;
    }
    .dropdown-content {
        min-width: 180px;
    }
}

/* ============================== */
/* CONTAINER DO CHAT */
/* ============================== */
.chat-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    max-width: 50vw;
    margin: auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.chat-container.centered {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alinha horizontalmente */
    justify-content: center; /* Alinha verticalmente */
    height: 50vh; /* Garante que desconsidere a topbar */
    text-align: center;
}

.chat-container.centered .chat-window {
    display: none !important;
}

.chat-container.centered .chat-input-wrapper {
    margin-top: 40px;
}

/* ============================== */
/* CABEÇALHO DO CHAT */
/* ============================== */
.chat-header {
    display: block;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* ============================== */
/* JANELA DO CHAT */
/* ============================== */
/* Envolve tudo abaixo da topbar */
.chat-content-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px); /* 100% da tela menos a topbar */
    max-width: 50vw;
    margin: auto;
}

/* Janela do chat com rolagem */
.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    padding-right: 16px;
}

.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-thumb {
    background-color: var(--gray-700);
    border-radius: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: transparent;
}

/* Caixa de entrada */
.chat-input-wrapper {
    padding: 20px;
}

/* Área de entrada */
.chat-input-inner {
    width: 100%;
    background-color: var(--gray-700);
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================== */
/* ÁREA DE INPUT DO CHAT */
/* ============================== */
.chat-input-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.chat-input-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50vw;
    background-color: var(--gray-700);
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.chat-input-inner textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    background-color: var(--gray-750);
    background: transparent;
    color: var(--white);
    font-size: 16px;
    border: none;
    border-radius: 6px;
    resize: none;
    outline: none;
    box-shadow: none;
}

.chat-input-inner textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* ============================== */
/* AÇÕES DO CHAT */
/* ============================== */
.chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-actions-left {
    display: flex;
    gap: 8px;
}

/* ============================== */
/* BOTÕES DE AÇÃO */
/* ============================== */
.action-btn,
.send-btn {
    background-color: var(--white);
    color: var(--black);
    font-size: 17px;
    border: none;
    padding: 10px 12px;
    border-radius: 25px;
    cursor: pointer;
}

.action-btn {
    background: none;
    border: 1px solid var(--gray-500);
    color: var(--white);
    font-size: 18px;
    position: relative;
    padding: 10px;
    width: 40px;
    height: 40px;
}

.action-2-btn {
    background-color: var(--blue);
    color: var(--white);
    font-size: 17px;
    border: none;
    padding: 10px 12px;
    border-radius: 25px;
    cursor: pointer;
}

.btn-g{
    height: 50px;
    width: 50px;
}

.btn-gg{
    border-radius:50%!important;
    height: 70px;
    width: 70px;
}

/* ============================== */
/* TOOLTIP DOS BOTÕES */
/* ============================== */
.action-btn::after {
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.action-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

.action-2-btn::after {
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.action-2-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}
/* ============================== */
/* TOOLTIP REUTILIZÁVEL PADRÃO */
/* ============================== */
.custom-tooltip {
    position: relative;
}

.custom-tooltip::after {
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

/* ============================== */
/* MEDIA QUERY */
/* ============================== */
@media (max-width: 768px) {
    .chat-input {
        width: 90vw;
    }
}

/* ============================== */
/* MENSAGENS DO CHAT */
/* ============================== */

.mensagem-usuario{
    padding: 10px 0px;
}

.mensagem-sistema {
    background-color: var(--gray-750);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    text-align: center;
    font-style: italic;
}

/* ============================== */
/* LOGOMARCA */
/* ============================== */

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 130px;
}

/* ============================= */
/* TUDO SOBRE O MAPA */
/* ============================= */

.custom-colored-marker .leaflet-pin {
    width: 30px;
    height: 42px;
    border-radius: 15px 15px 15px 0;
    transform: rotate(-45deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.custom-colored-marker .leaflet-pin span {
    transform: rotate(45deg);
}

/* ================================ */
/* PLANO CADASTRO E ASSINATURA */
/* ================================ */

.step {
    font-size: 1.2rem;
}

.step.active {
    font-weight: bold;
    color: #0d6efd;
}

.modal-body-nova-conta {
    min-height: 600px; /* ou ajuste conforme necessário */
}

.step-wrapper {
    overflow: hidden;
    counter-reset: step;
}

.step-item {
    position: relative;
    padding: 10px 20px 10px 30px;
    background: #dee2e6;
    color: #6c757d;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: background 0.3s, color 0.3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    margin-right: 5px;
    z-index: 1;
}

.step-item:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.step-item.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
}

.step-item:not(.active):hover {
    background-color: #ced4da;
    cursor: pointer;
}

#modal-automatizacao-rotas-mapas input,
#modal-automatizacao-rotas-mapas select,
#modal-automatizacao-rotas-mapas textarea {
    font-size: 12px !important;
}

/* Texto da tabela */
#modal-automatizacao-rotas-mapas table,
#modal-automatizacao-rotas-mapas table td,
#modal-automatizacao-rotas-mapas table th {
    font-size: 12px !important;
}

/* Inputs e selects da tabela */
#modal-automatizacao-rotas-mapas table input,
#modal-automatizacao-rotas-mapas table select,
#modal-automatizacao-rotas-mapas table textarea {
    font-size: 12px !important;
    padding: 2px 4px; /* opcional, deixa mais compacto */
}