
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --color-primary-dark: #0D0C0D;
    --color-primary: #16a34a;
    --color-second-dark: #191919;
    --font-primary: sans-serif;
    --font-headings: 'Poppins', sans-serif;
    --color-white: #ffffff;
    --color-second-blue: #b3b6b6;
    --color-gray: #f0f5f5;
    --spacing-gutter-medium: 3rem;
    --spacing-gutter-large: 4rem;
    --color-dark-text: #444;

    --color-dark-text: #444;
    --color-info-light: #cce5ff;
    --color-debug-light: #cce5ff;
    --color-success-light: #d4edda;
    --color-alert-light: #fff3cd;
    --color-warning-light: #fff3cd;
    --color-error-light: #f8d7da;
    --color-info-dark: #4d86c4;
    --color-debug-dark: #4d86c4;
    --color-success-dark: #4a9c5d;
    --color-alert-dark: #927f40;
    --color-warning-dark: #927f40;
    --color-error-dark: #da525d;
    --color-gray-0: #f9f9f9;
    --color-gray-1: #e0e0e0;
    --color-gray-2: #c7c7c7;
    --color-gray-3: #aeaeae;
    --color-gray-4: #959595;
    --color-gray-5: #7d7d7d;
    --color-gray-6: #646464;
    --color-gray-7: #4b4b4b;
    --color-gray-8: #323232;
    --color-gray-9: #191919;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    font-size: 100%;

}

body{
    font-size: 1rem;
    /* font-family: var(--font-headings); */
    background-color: var(--color-second-dark);
    font-family: 'Inter', sans-serif;

}



html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}



.main-content {
    padding-top: 0;
    background: var(--color-second-dark);

    flex: 1; /* Faz com que esse elemento cresça e empurre o footer para baixo */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha o conteúdo no topo */
   
}

img{
    max-width: 100%;
}

.main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-primary-dark);
    padding: var(--spacing-gutter-large);
    color: #b3b6b6;
    background: var(--color-primary-dark); /* Cor do footer */
    color: white;
    text-align: center;
    padding: 20px;
}

.main-footer a {
    color: var(--color-white);
    text-decoration: none;
    transition: all 300ms ease-in-out;
}

.main-footer a:hover {
    filter: brightness(.8);
}

/* Garante que a página ocupe 100% da altura da tela */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Faz com que o conteúdo principal ocupe o máximo de espaço disponível */
.main-content-container {
    flex: 1;
    
}

/* Footer sempre no final */
.main-footer {
    background: var(--color-primary-dark); /* Cor do footer */
    color: white;
    text-align: center;
    padding: 20px;
}


.container{
    max-width: 180rem;
    background: var(--color-primary-dark);
    margin: auto;
    padding: 3.5rem;
}


.main-header.container {
    display: flex; /* Ativa o Flexbox */
    justify-content: space-between; /* Espaço entre os itens laterais */
    align-items: center; /* Alinha verticalmente os itens */
    padding: 0 20px; /* Adiciona espaçamento lateral opcional */
    max-width: 180rem;
    background: #000000;
    margin: auto;
    padding: 2.0rem;
}

.header-center {
    flex: 1; /* Ocupa o espaço central */
    text-align: center; /* Centraliza o texto dentro desta área */
}

.header-right {
    display: flex; /* Ativa o Flexbox */
    flex-direction: column; /* Organiza o ícone e o texto verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente */
    gap: 5px; /* Espaçamento entre o ícone e o texto */
}

.main-logo {
    text-decoration: none; /* Remove sublinhado do link */
    color: #fff; /* Cor do texto */
}

.main-logo span {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700; /* Ajuste para negrito se necessário */
    letter-spacing: 1px; /* Pequeno espaçamento para melhor visualização */
}

.user-icon {
    color: #fff; /* Cor do ícone */
    font-size: 24px; /* Ajuste o tamanho do ícone */
    cursor: pointer; /* Indica que é clicável */
}

.text-login-user{
    color: white;
    font-size: 14px; /* Ajuste o tamanho do texto conforme necessário */
    margin: 0; /* Remove margens extras do texto */
    text-align: center; /* Centraliza o texto */
}

#map {
    width: 100%;
    height: 1000px;
    z-index: 1;
}

#totalArea{
    color: var(--color-white);
}

.map_container{

    padding: 3rem;
}


.s_container{
    padding: 3rem;
}

.search-form{
    border: .2rem solid var(--color-second-blue);
    max-width: 64rem;
    margin: 0 auto;
    border-radius: .4rem;
    background: var(--color-white);
    position: relative;
    transition: all 300ms ease-in-out;
}


.search-input,
.search-button{
    border: none;
    background: none;
    outline: none;
    padding: 1rem;
    transition: all 300ms ease-in-out;
}

.search-input{
    width: 100%;
    padding-right: 3rem;
}

.search-button {
   position: absolute;
   top: 0;
   right: 0;
}

/* .search-button:focus {
    outline: 1px solid var(--color-primary-dark);
    background-color: rgb(0,0,0 .15);
 } */

.search-form:focus-within {
    border-color: rgb(15, 162, 5);
    background: var(--color-white);
}

.search-form:focus-within .search-button {
    color: rgb(15, 162, 5);
}



.main-content-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-gutter-large) ;
}

.visita {
    background-color: #1f1f1f; /* Fundo escuro */
    color: #ffffff; /* Texto branco */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra ajustada para o tema escuro */
    transition: all 300ms ease-in-out;
    transform: scale(1);
    border-radius: 0.4rem; /* Bordas arredondadas */
    overflow: hidden;
    margin-bottom: 20px; /* Espaço entre caixas */
}

.visita img {
    max-width: 100%; /* Mantém a largura responsiva */
    border-bottom: 2px solid #444; /* Linha de separação da imagem */
}

.visita-list-item {
    max-width: 64rem;
    height: fit-content; /* Ajusta dinamicamente a altura */
}

.visita-list-item:hover {
    transform: scale(1.01); /* Efeito de "zoom" ao passar o mouse */
}

.visita-title-container {
    padding: var(--spacing-gutter-medium);
    padding-bottom: calc(var(--spacing-gutter-medium) / 2);
}

.visita-title {
    font-size: 1.8rem;
    color: #ffffff; /* Título com contraste */
    margin-bottom: 10px;
}

.visita-author {
    padding: 0 var(--spacing-gutter-medium);
    color: #cccccc; /* Texto mais claro para diferenciar */
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espaçamento entre os itens */
}

.visita-author-item i {
    color: #17a2b8; /* Ícones com azul claro */
    margin-right: 5px;
}

.visita-content {
    padding: var(--spacing-gutter-medium);
    padding-top: calc(var(--spacing-gutter-medium) / 2);
    color: #dddddd; /* Texto da descrição */
    line-height: 1.6; /* Melhor espaçamento entre linhas */
}

.visita-footer a {
    background: #0D0C0D; /* Fundo do botão no tema escuro */
    display: block;
    color: #ffffff; /* Texto do botão */
    text-decoration: none;
    text-align: center;
    padding: 1rem;
    border-radius: 5px;
    transition: all 300ms ease-in-out;
}

.visita-footer a:hover {
    filter: brightness(1.5); /* Efeito de brilho ao passar o mouse */
}

.visita-footer {
    padding: 15px 20px; /* Espaçamento interno */
    text-align: center;
}

.visita-content p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.datail-description {
    font-size: 1.2rem;
    color: #dddddd;
    line-height: 1.6;
    padding: 10px;
    background-color: #292929; /* Fundo separado para detalhes */
    border-radius: 5px;
}


.main-content-detail .visita-list-item{
    max-width: 84rem;
    margin: 0 auto;
}

.main-content-detail .visita-list-item:hover{
    transform: scale(1);
}

.datail-description{
    padding: var(--spacing-gutter-medium);
}

.footer-logo{
    width: 100px;
    height: auto;
}

.center_m-y{
    text-align: center;
}

.m-y{
    color: #ffffff;
}

.m-x {
    margin: 0 var(--spacing-gutter-medium);
  }
  
.m-y {
    margin: var(--spacing-gutter-medium) 0;
  }


 .pagination-content{
    display: flex;
    flex-flow: nowrap;
    gap: 1rem 0.5rem;
    
  }
.pagination .page-item{
    text-decoration: none;
    background: var(--color-primary-dark);
    color: #ffffff;
    padding: 0.5rem 1rem;
}

.pagination .page-link{
    text-decoration: none;
    background: #b3b6b6;
    color: #ffffff;
}

.pagination .page-current{
    background: #b2f105;
}
/*forms */

.register-conteiner{
    max-width: 64rem;
    margin: 0 auto;
    color: white;
    margin-bottom: var(--spacing-gutter-medium);
    margin-top: var(--spacing-gutter-medium);
    text-align: center;
   
}

.form-content{

    max-width: 64rem;
    margin: 0 auto;
    margin-bottom: var(--spacing-gutter-medium);
}
.form-content label{
    display: block;
    margin: 1.2rem 0;
    font-size: 1.4rem;
    color: white;
}

.form-content input,
.form-content textarea,
.form-content select{
    width: 100%;
    padding: 1rem;
    border-radius: 0.4rem;
    border: 1px solid var(--color-gray-2);
}

.help-text{
    color: rgb(255, 174, 0);
    font-size: 1rem;
}

.errorlist{
    color: red;
    font-size: 1rem;
    list-style: none;
}

.form-content button{
    padding: 1rem 2rem;
    border:none;
    border-radius: 5%;
    background: var(--color-info-dark);
    color: white;
}
/* Messages */

.messages-container {
    display: flex;
    flex-flow: column nowrap;
    gap: calc(var(--spacing-gutter-medium) / 2);
  }
  
.message {
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--color-dark-text);
    background: var(--color-gray-2);
    color: var(--color-dark-text);
  }
  
  .message-error {
    border: 1px solid var(--color-error-dark);
    background: var(--color-error-light);
    color: var(--color-error-dark);
  }
  
  .message-success {
    border: 1px solid var(--color-success-dark);
    background: var(--color-success-light);
    color: var(--color-success-dark);
  }
  
  .message-warning {
    border: 1px solid var(--color-warning-dark);
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
  }
  
  .message-alert {
    border: 1px solid var(--color-alert-dark);
    background: var(--color-alert-light);
    color: var(--color-alert-dark);
  }
  
  .message-info {
    border: 1px solid var(--color-info-dark);
    background: var(--color-info-light);
    color: var(--color-info-dark);
  }
  
  .message-debug {
    border: 1px solid var(--color-debug-dark);
    background: var(--color-debug-light);
    color: var(--color-debug-dark);
  }
  
  .inline-form {
    display: inline;
  }
  
  .plaintext-button {
    display: inline;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-info-dark);
    font-size: 1.6rem;
  }
  
  .authors-dashboard-container{
    max-width: 64rem;
    padding: var(--spacing-gutter-medium);
    text-align: left;
    margin: 0 auto;
    color: black;
    
  }

  .authors-dashboard-container h3,
  .authors-dashboard-container p,
  .authors-dashboard-container ul{
    list-style-type: none;
    margin: 1rem 0 ;
  }

  .left{
    text-align: left;
  }

  .span-2{
    grid-column: span 2;
  }

  .edit-delete-button-container {
    display: flex; /* Ativa Flexbox */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Alinha os botões verticalmente */
    gap: 10px; /* Espaçamento entre os botões */
    margin-top: 20px; /* Espaçamento acima dos botões */
}

/* Botão de Editar */
.btn-edit {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: #0056b3; /* Cor ao passar o mouse */
}

/* Botão de Deletar */
.plaintext-button {
    display: inline-flex; /* Mantém a aparência inline */
    align-items: center; /* Alinha o ícone e texto verticalmente */
    padding: 10px 20px; /* Espaçamento interno */
    background-color: #dc3545; /* Vermelho para indicar exclusão */
    color: #fff; /* Cor do texto */
    border: none; /* Remove borda padrão */
    border-radius: 5px; /* Borda arredondada */
    font-size: 14px; /* Ajusta o tamanho do texto */
    font-weight: bold; /* Negrito */
    cursor: pointer; /* Indica clicável */
    transition: background-color 0.3s ease;
}

.plaintext-button i {
    margin-right: 5px; /* Espaçamento entre ícone e texto */
    font-size: 16px; /* Tamanho do ícone */
}

.plaintext-button:hover {
    background-color: #c82333; /* Cor ao passar o mouse */
}


/* Estilo Geral da Dashboard */
.dashboard-container {
    padding: 20px;
    background-color: var(--color-second-dark) !important;  /* Cor de fundo escura */
    color: #fff; /* Cor do texto */
    font-family: Arial, sans-serif;
}

/* Cabeçalho */
.dashboard-header {
    display: flex; /* Ativa o layout flexbox */
    align-items: center; /* Alinha o conteúdo verticalmente */
    gap: 10px; /* Espaçamento entre o título e o botão */
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    margin: 0; /* Remove margens extras no título */
}

/* Conteúdo Principal */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Layout responsivo */
    gap: 20px; /* Espaçamento entre os quadros */
}

/* Quadros */
.dashboard-card {
    background-color: var(--color-gray-8); /* Cor de fundo dos quadros */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Sombra */
    
}
/* Estilo básico para links dentro do container de "Recentes" */
.dashboard-card a {
    color: inherit; /* Herda a cor do texto ao redor */
    text-decoration: none; /* Remove o sublinhado */
    font-weight: normal; /* Ajusta o peso da fonte */
}

/* Opcional: Mudar cor no hover */
.dashboard-card a:hover {
    color: #61dafb; /* Adiciona uma leve mudança de cor ao passar o mouse */
    text-decoration: underline; /* (opcional) Adiciona sublinhado no hover */
}

.dashboard-card h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #98fdaa; /* Azul claro */
}

/* Lista dentro de Recentes */
.dashboard-card ul {
    list-style-type: none; /* Remove marcadores */
    padding: 0;
}

.dashboard-card ul li {
    margin-bottom: 10px;
}



.sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Esconde a sidebar por padrão */
    width: 240px;
    height: 100vh; /* Ocupa toda a altura da janela */
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Permite rolar o conteúdo, se necessário */
    transition: all 0.3s ease-in-out;
    z-index: 1000; /* Fica acima de outros elementos */
    background: var(--color-second-dark);
  }
  
  /* Quando a sidebar está visível */
  .sidebar.active {
    left: 0; /* Move para dentro da tela */
  }
  
  /* Botão para fechar o menu */
  .sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
  }
  
  /* Links do Menu */
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    margin-top: 60px; /* Espaço para o botão de fechar */
  }
  
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--color-gray-1);
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.3s ease-in-out;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
  }
  


  .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Botão para abrir o menu */
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000; /* Fica acima da sidebar */
    transition: all 0.3s ease-in-out;
  }
  
  .sidebar-toggle:hover {
    background: var(--color-primary-dark);
  }

  .sidebar.active + .sidebar-toggle {
    display: none; /* Esconde o botão quando o menu está ativo */
    
  }

  
  /* Estilo do botão "Novo" */
  .btn-new {
    display: inline-flex; /* Mantém o layout do ícone e texto */
    align-items: center; /* Centraliza verticalmente o conteúdo */
    padding: 8px 16px; /* Tamanho interno do botão */
    background-color: #4CAF50; /* Verde */
    color: #fff; /* Cor do texto */
    text-decoration: none; /* Remove sublinhado */
    font-size: 1.4rem; /* Ajusta o tamanho do texto */
    font-weight: bold; /* Negrito */
    border-radius: 6px; /* Bordas arredondadas */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: background-color 0.3s ease;
}

.btn-new i {
    margin-right: 8px; /* Espaçamento entre o ícone e o texto */
}

.btn-new:hover {
    background-color: #45A049; /* Cor mais escura ao passar o mouse */
}



/* Centralizar o container do botão */
.add-event-container {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    margin-top: 20px; /* Espaçamento acima */
}

/* Estilo do botão */
.btn-add-event {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #28a745; /* Cor verde semelhante */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-add-event i {
    margin-right: 8px; /* Espaço entre o ícone e o texto */
    font-size: 18px;
}

.btn-add-event:hover {
    background-color: #218838; /* Verde mais escuro para hover */
    transform: translateY(-2px); /* Efeito de elevação */
}

.btn-add-event:active {
    background-color: #1e7e34; /* Verde mais escuro para active */
    transform: translateY(0); /* Retorno à posição normal */
}

.add-event-container {
    min-height: 20vh; /* Altura total da página */
}



/* Centralizar o título "Adicionar Evento" */
.add-event-title {
    text-align: center;
    color: #fff; /* Branco */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Estilo do formulário */
.add-event-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espaço entre os campos */
    margin: 0 auto;
    max-width: 400px; /* Largura máxima */
    padding: 20px;
    background-color: #1c1c1c; /* Fundo escuro */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo dos labels */
.add-event-form .form-group label {
    color: #fff; /* Branco */
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

/* Estilo dos inputs e textarea */
.add-event-form .form-group input,
.add-event-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #2c2c2c; /* Fundo escuro */
    color: #fff; /* Texto branco */
}

/* Estilo do botão "Salvar Evento" */
.btn-save {
    background-color: #28a745; /* Verde */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-save:hover {
    background-color: #218838; /* Verde mais escuro no hover */
}

/* Estilo do link "Voltar" */
.btn-back {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
    font-size: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}

/* Centralizar o título "Editar Evento" */
.edit-event-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Container principal */
.edit-event-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 400px;
    padding: 20px;
    background-color: #1c1c1c; /* Fundo escuro */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo do formulário */
.edit-event-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilo dos labels */
.edit-event-form .form-group label {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

/* Estilo dos inputs e textarea */
.edit-event-form .form-group input,
.edit-event-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #2c2c2c; /* Fundo escuro */
    color: #fff;
}

/* Botão "Salvar Alterações" */
.btn-primary {
    background-color: #206ccd; /* Verde */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: #092c5a; /* Verde mais escuro no hover */
}

/* Botão "Cancelar" */
.btn-secondary {
    display: block;
    text-align: center;
    color: #fff;
    background-color: #6c757d; /* Cinza */
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: #5a6268; /* Cinza mais escuro no hover */
}

/* Botão "Excluir Evento" */
.btn-danger {
    background-color: #dc3545; /* Vermelho */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-danger:hover {
    background-color: #c82333; /* Vermelho mais escuro no hover */
}

/* Formulário de exclusão alinhado */
.delete-event-form {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

/* Estilizar o botão "Ver todos" */
.btn-view-all {
    font-size: 1.2rem;
    color: #fdfdfd; /* Azul */
    text-decoration: none;
    margin-left: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-view-all:hover {
    color: #ffffff; /* Azul mais escuro no hover */
    text-decoration: underline;
}

/* Ajustar alinhamento do título com o link */
.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Esconde a sidebar por padrão */
    width: 260px;
    height: 100vh; /* Ocupa toda a altura */
    background-color: var(--color-second-dark);
    color: var(--color-white);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Scroll se necessário */
    transition: all 0.3s ease-in-out;
    z-index: 1000; /* Mantém acima dos elementos */
    display: flex;
    flex-direction: column; /* Empilha os elementos */
    justify-content: space-between; /* Espaça o conteúdo */
    gap: 10px; /* Espaçamento entre os elementos */
}

.sidebar.active {
    left: 0; /* Mostra a sidebar */
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* Cabeçalho do Usuário */
.sidebar-user-header {
    display: flex;
    flex-direction: column; /* Empilha os elementos */
    align-items: center; /* Centraliza horizontalmente */
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #444; /* Linha divisória */
}

.sidebar-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Formato circular */
    object-fit: cover; /* Mantém proporção */
    margin-bottom: 10px;
    border: 2px solid #2ff58f; /* Borda ao redor da imagem */
}

.sidebar-user-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.sidebar-logout-form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #c82333;
}

/* Navegação */
.sidebar-nav {
    flex: 1; /* Preenche o restante da altura */
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-top: 8px;
}

.sidebar-module {
    margin-bottom: 20px;
}

.sidebar-module h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #ffffff;
    padding-bottom: 5px;
}

.sidebar-module a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-module a:hover {
    background-color: #444; /* Fundo mais escuro no hover */
}

/* Estiliza os botões de toggle nos módulos */
.sidebar-module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    color: #ffffff;
    padding: 10px 0;
}

.sidebar-module-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-module-content {
    display: none; /* Esconde os itens inicialmente */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.sidebar-module.expanded .sidebar-module-content {
    display: block; /* Exibe os itens quando expandido */
}

.sidebar-module.expanded .sidebar-module-toggle {
    transform: rotate(180deg); /* Rotaciona o ícone quando expandido */
}

.legend {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
}   

/* Força a exibição do botão fullscreen */
.leaflet-control-fullscreen-button {
    z-index: 10000 !important; /* Garante que fique acima de todos os outros elementos */
    display: block !important;
    position: absolute;
    background-color: #fff; /* Fundo branco para melhor visibilidade */
    border: 1px solid #ccc; /* Borda leve para destaque */
    border-radius: 4px; /* Borda arredondada */
    padding: 5px;
}

/* Força a exibição do botão do medidor de distância */
.leaflet-bar.leaflet-control.leaflet-pm-toolbar {
    z-index: 10000 !important; /* Garante que fique acima de todos os outros elementos */
    display: block !important;
    position: absolute;
}

/* Ajusta qualquer interferência no controle do medidor */
.leaflet-pm-icon {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    background-color: #fff !important; /* Fundo branco para visibilidade */
    border: 1px solid #ccc !important; /* Borda leve */
    border-radius: 4px !important;
}

/* Ajusta os ícones dos controles */
.leaflet-bar a {
    background-color: #fff !important; /* Fundo branco para ícones */
    border: 1px solid #ccc !important; /* Borda para separação clara */
    border-radius: 4px;
    padding: 5px;
}

/* Garante que o botão de tela cheia não seja escondido */
.leaflet-control-fullscreen.leaflet-bar {
    z-index: 10000 !important;
}

.content-status {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}



.timeline-item {
    margin-bottom: 15px;
}

.timeline-item h4 {
    margin: 0;
    font-size: 1.2rem;
}

.timeline-item p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Estilo do botão principal */
.mapboxgl-ctrl-group button {
    background-color: #fff;
    border: none;
    border-radius: 6px;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 50px;
}

.mapboxgl-ctrl-group button {
    width: 40px !important;
    height: 40px !important;
}


.mapboxgl-ctrl-group button:hover {
    background-color: #f3f4f6;
    color: #495057;
}

.mapboxgl-popup-content {
    background-color: #ffffff; /* Fundo branco para contraste */
    color: #333333; /* Cor do texto escuro */
    border-radius: 10px; /* Bordas arredondadas */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    padding: 15px; /* Espaçamento interno */
    font-family: 'Inter', sans-serif; /* Fonte moderna */
    font-size: 14px; /* Tamanho do texto */
    line-height: 1.6; /* Espaçamento entre linhas */
    border: 1px solid #ddd; /* Linha sutil ao redor */
}

.mapboxgl-popup-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px; /* Tamanho maior para títulos */
    color: #007bff; /* Azul para destaque */
    font-weight: bold;
}

.mapboxgl-popup-content p {
    margin: 0 0 10px; /* Espaçamento entre os parágrafos */
}

.mapboxgl-popup-content b {
    color: #007bff; /* Azul para destacar títulos */
    font-weight: 600; /* Leve ênfase nos textos em negrito */
}

.mapboxgl-popup-content::before {
    content: "";
    position: absolute;
    bottom: -10px; /* Ajusta a posição da seta */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent; /* Cria a seta branca */
}

.mapboxgl-popup-close-button {
    background-color: #dc3545 !important; /* Fundo vermelho (ou qualquer cor desejada) */
    color: white !important; /* Cor do ícone no botão */
    border: none !important; /* Remove qualquer borda */
   
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background-color 0.3s ease-in-out;
}

.mapboxgl-popup-close-button:hover {
    background-color: #b21f2d !important; /* Vermelho mais escuro no hover */
    color: white !important; /* Garante que o ícone permaneça branco */
}
/* Dropdown container */
.dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostra o dropdown com transições */
.dropdown.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Opção de camada dentro do dropdown */
.dropdown div {
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 550;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dropdown div:hover {
    background-color: #007afc;
    color: white;
}

.layer-control {
    display: none; /* Escondido por padrão */
    background: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    font-size: 14px;
    z-index: 1000;
}
.mapboxgl-ctrl-group button {
    width: 36px;
    height: 36px;
}


/* Estilo do Formulário. */
/* Fundo geral da página */
body {
    
    /* background: var(--color-gray-8); */
    background-color: var(--color-second-dark) !important;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0 auto;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
   /* Certifique-se de usar o mesmo gradiente */
    
    background-attachment: fixed; /* Garante que o fundo permaneça fixo ao rolar */
}
/* Contêiner para o formulário */
.page-container {
    display: flex;
    flex-direction: column; /* Permite que o conteúdo flua em coluna */
    align-items: center;
    padding: 20px;
    min-height: 100vh; /* Garante que preencha a tela */
}

/* Contêiner do formulário */
.form-card-container {
    width: 100%;
    max-width: 1200px; /* Largura máxima */
    margin: 20px auto; /* Centraliza horizontalmente */
    padding: 20px;
}

/* Caixa do formulário */
.form-box {
    background-color: rgba(10, 13, 23, 0.04); /* Fundo translúcido */
    border: 2px solid #314138; /* Borda */
    border-radius: 20px; /* Bordas arredondadas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Sombra */
    backdrop-filter: blur(20px); /* Desfoque no fundo */
    -webkit-backdrop-filter: blur(20px); /* Compatibilidade com navegadores */
    padding: 40px;
}

/* Estilo dos inputs e labels */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #fff;
}

input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #333333;
    color: #fff;
    font-size: 14px;
    outline: none;
}

/* Botão de envio */
.btn-submit {
    background-color: #A864F4;
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #914CE6;
}

.competitor-area {
    display: flex;
    align-items: center; /* Alinha verticalmente */
    gap: 10px; /* Espaço entre o checkbox e o texto */
    margin-bottom: 20px; /* Espaçamento abaixo */
    color: var(--color-white); /* Cor do texto */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o checkbox e o texto */
    font-size: 1.6rem; /* Ajuste o tamanho da fonte */
    cursor: pointer; /* Mostra o cursor como clicável */
}

input[type="checkbox"] {
    width: 18px; /* Tamanho do checkbox */
    height: 18px;
    accent-color: var(--color-second-blue); /* Cor do checkbox */
    cursor: pointer; /* Mostra o cursor como clicável */
    border-radius: 4px; /* Borda levemente arredondada */
    transition: all 0.2s ease; /* Efeito suave no clique */
}

input[type="checkbox"]:hover {
    transform: scale(1.1); /* Aumenta levemente ao passar o mouse */
}

.form-actions {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    margin-top: 20px; /* Espaçamento do botão */
}

.btn-submit {
    background-color: #4CAF50; /* Cor do botão */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra */
}

.btn-submit:hover {
    background-color: #45A049; /* Cor mais escura no hover */
    transform: translateY(-2px); /* Elevação ao passar o mouse */
}

.btn-submit:active {
    background-color: #3E8E41; /* Cor ao clicar */
    transform: translateY(0); /* Retorno à posição */
}

.form-title {
    text-align: center; /* Centraliza horizontalmente */
    font-size: 2.4rem; /* Ajuste o tamanho conforme necessário */
    margin-bottom: 20px; /* Espaçamento abaixo do título */
    font-weight: bold;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #6c757d; /* Cinza */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px; /* Espaço abaixo */
}

.btn-back i {
    margin-right: 8px; /* Espaço entre o ícone e o texto */
    font-size: 16px;
}

.btn-back:hover {
    background-color: #5a6268; /* Cinza mais escuro no hover */
}

/* Estilo para o contêiner do campo de upload */
.file-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Estilo para o rótulo do campo de upload */
.file-upload label {
    font-size: 14px;
    color: #333;
    margin-right: 10px;
    white-space: nowrap;
}

/* Estilo para o botão de escolha de arquivo */
.file-upload input[type="file"] {
    display: none; /* Esconde o botão padrão */
}

.file-upload button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.file-upload button:hover {
    background-color: #0056b3;
}

/* Estilo para o texto do nome do arquivo */
.file-upload span {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}


/* Container principal da timeline */
.timeline-container {
    background-color: #1e1e1e; /* Fundo escuro */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #ffffff; /* Texto branco */
    margin-top: 10px;
}

/* Estilo da timeline */
.timeline {
    display: flex;
    gap: 20px; /* Espaço entre os itens */
    overflow-x: auto; /* Permite rolar horizontalmente */
    padding: 10px 0;
    position: relative;
}

/* Barra horizontal da timeline */
.timeline::before {
    content: '';
    position: absolute;
    top: 50%; /* Alinha ao meio */
    left: 0;
    right: 0;
    height: 2px;
    background-color: #444; /* Linha escura */
    z-index: 0;
}

/* Itens da timeline */
.timeline-item {
    background-color: #2a2a2a; /* Fundo escuro para os itens */
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra leve */
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    min-width: 200px; /* Largura mínima */
    max-width: 250px; /* Largura máxima para evitar caixas muito grandes */
    text-align: center;
    color: #ffffff; /* Texto branco */
    word-wrap: break-word; /* Quebra palavras grandes */
    white-space: normal; /* Permite o texto quebrar em múltiplas linhas */
}
/* Links no título da timeline */
.timeline-item h4 a {
    color: #a3e788; /* Azul vibrante */
    text-decoration: none;
    font-size: 1.2rem;
}

.timeline-item h4 a:hover {
    color: #48cae4; /* Azul mais claro no hover */
    text-decoration: underline;
}

/* Ações abaixo da timeline */
.timeline-actions {
    margin-top: 15px;
    text-align: center;
}

.timeline-actions .btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #00b4d8; /* Azul vibrante */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.timeline-actions .btn:hover {
    background-color: #48cae4; /* Azul mais claro no hover */
}

.btn-followup {
    background-color: #17a2b8; /* Cor azul para destaque */
    color: white; /* Texto branco */
    text-decoration: none; /* Remove o underline */
    border: none; /* Remove bordas */
    padding: 10px 20px; /* Espaçamento interno */
    border-radius: 5px; /* Arredonda as bordas */
    font-size: 1.2rem; /* Tamanho do texto */
    font-weight: bold; /* Negrito para o texto */
    cursor: pointer; /* Muda o cursor ao passar */
    display: inline-block; /* Garante que o botão seja um bloco */
    text-align: center; /* Centraliza o texto */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transições suaves */
}

.btn-followup:hover {
    background-color: #138496; /* Azul mais escuro no hover */
    transform: scale(1.05); /* Leve aumento ao passar o mouse */
    text-decoration: none; /* Garante que o underline continue removido */
}

.btn-followup:active {
    background-color: #117a8b; /* Azul ainda mais escuro ao clicar */
    transform: scale(0.95); /* Leve redução ao clicar */
}

.content-main {
    background-color: #1f1f1f; /* Fundo escuro */
    color: #ffffff; /* Texto branco */
    padding: 20px; /* Espaçamento interno */
    border-radius: 10px; /* Bordas arredondadas */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Adiciona uma sombra */
}

.content-main h4,
.content-main p {
    color: #cccccc; /* Texto mais claro */
}

.content-main a {
    color: #ffffff; /* Cor azul para links */
    text-decoration: none; /* Remove o underline */
    transition: color 0.3s ease; /* Transição suave */
}

.content-main a:hover {
    color: #138496; /* Azul mais escuro no hover */
}

.edit-delete-button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-edit,
.plaintext-button {
    background-color: #28a745; /* Verde para o botão de edição */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-edit:hover {
    background-color: #218838; /* Verde mais escuro no hover */
    transform: scale(1.05); /* Efeito de leve aumento */
}

.plaintext-button {
    background-color: #dc3545; /* Vermelho para deletar */
}

.plaintext-button:hover {
    background-color: #c82333; /* Vermelho mais escuro */
}

/* Sidebar do Mapa */
.sidebar-map {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 320px;
    background-color: #1f1f1f; /* Fundo escuro */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: hidden;
    color: #ffffff; /* Texto branco */
    font-family: Arial, sans-serif;
}

/* Cabeçalho da Sidebar */
.sidebar-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; /* Fundo mais escuro */
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #444;
    color: #444; /* Título em cinza claro */
}

/* Botão de Fechar no Cabeçalho */
.sidebar-map-header button {
    background: #007bff;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.sidebar-map-header button:hover {
    background-color: #0056b3; /* Azul mais escuro no hover */
}

/* Tabs da Sidebar */
.sidebar-map-tabs {
    display: flex;
    background-color: #2b2b2b; /* Fundo mais escuro */
}

.sidebar-map-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-right: 1px solid #444;
    font-size: 14px;
    color: #bbbbbb;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-map-tab:last-child {
    border-right: none;
}

.sidebar-map-tab.active {
    background-color: #1f1f1f;
    color: #007bff;
    font-weight: bold;
    border-bottom: 3px solid #007bff; /* Azul */
}

/* Conteúdo da Sidebar */
.sidebar-map-content {
    padding: 15px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.sidebar-map-content.active {
    display: block;
}

/* Formulários e Inputs */
.sidebar-map .form-group {
    margin-bottom: 15px;
}

.sidebar-map .form-group label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #444;
}

.sidebar-map .form-group select,
.sidebar-map .form-group input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #d7d7d7;
    background-color: #d5d5d5;
    color: #2c2c2c;
}

/* Botões */
.sidebar-map button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-map button:hover {
    background-color: #0056b3;
}

/* Estilo para os botões de rádio */
.radio-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-container input[type="radio"] {
    margin-right: 10px; /* Espaço entre o botão e o texto */
    cursor: pointer;
    width: 16px;
    height: 16px; /* Tamanho do botão */
}

.radio-container label {
    color: #ffffff; /* Texto branco para o tema escuro */
    font-size: 14px; /* Tamanho do texto */
    margin: 0; /* Remove margens extras */
    cursor: pointer; /* Cursor interativo */
    line-height: 1.5; /* Alinhamento vertical confortável */
}


.sidebar-map-content label {
    color: #333; /* Cor escura para garantir visibilidade */
    font-size: 14px; /* Ajuste do tamanho da fonte */
    font-weight: bold; /* Para destacar o texto */
    margin-bottom: 10px; /* Espaçamento entre o título e o restante */
    display: flex; /* Garante que o label seja um bloco separado */
}


/* Estilo atualizado para os toggles personalizados */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinha o toggle à direita */
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    color: #333; /* Texto escuro para contraste */
    padding: 5px 10px; /* Espaçamento interno */
}

/* Texto do toggle */
.toggle-container span {
    font-size: 14px;
    font-weight: bold;
    color: #4a4a4a; /* Cinza escuro elegante */
}

/* Esconde o checkbox padrão */
.toggle-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    cursor: pointer;
}

/* Estilo do slider (fundo do toggle) */
.toggle-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc; /* Fundo cinza claro para estado "desligado" */
    border-radius: 20px;
    transition: background-color 0.4s ease;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra interna para profundidade */
}

/* O botão deslizante */
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    background-color: white; /* Cor do botão */
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.4s ease, background-color 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra do botão */
}

/* Estado "ligado" */
.toggle-container input:checked + .toggle-slider {
    background-color: #72eb96; /* Fundo azul elegante para estado ativo */
}

/* Movimento do botão no estado "ligado" */
.toggle-container input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: white; /* Cor do botão no estado ativo */
}

/* Hover do toggle */
.toggle-slider:hover {
    background-color: #bbb; /* Fundo cinza mais claro no hover */
}

/* Hover no estado "ligado" */
.toggle-container input:checked + .toggle-slider:hover {
    background-color: #29a54e; /* Azul mais escuro no hover */
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
}

.custom-file-label:hover {
    background-color: #0056b3;
}

.image-slider {
    max-width: 100%;
    max-height: 600px; /* Tamanho máximo permitido para a altura */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Fundo para contraste */
    border-radius: 8px;
    position: relative;
}

.image-slider img {
    max-width: 100%; /* Adapta a largura para o container */
    max-height: 100%; /* Limita a altura */
    object-fit: cover; /* Garante que as imagens preencham o espaço proporcionalmente */
    border-radius: 8px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
    display: none; /* Esconde por padrão */
    justify-content: center;
    align-items: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slider-item.active {
    display: flex; /* Exibe apenas o item ativo */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-container img {
    max-width: 100%; /* Para ajustar ao contêiner */
    max-height: 500px; /* Define uma altura máxima */
    object-fit: cover; /* Garante que a imagem seja ajustada sem distorção */
    border-radius: 10px; /* Opcional: adiciona bordas arredondadas */
    margin: 0 auto; /* Centraliza horizontalmente */
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Garante que o conteúdo não ultrapasse os limites */
    position: relative;
    max-width: 600px; /* Largura máxima do contêiner */
    margin: 0 auto; /* Centraliza o contêiner na página */
    border: 2px solid #ddd; /* Borda opcional */
    border-radius: 10px; /* Borda arredondada */
}

/* Reduz o tamanho do formulário de login */
.login-container .login-box {
    max-width: 64rem; /* Define a largura máxima */
    padding: 20px;
    width: 64rem;
}

/* Estilo para a tela de login */
.login-container {
    background-image: url("/static/layout/capa.jpg");
    background-size: cover; /* Faz a imagem preencher toda a tela */
    background-repeat: no-repeat; /* Evita repetição da imagem */
    background-position: center; /* Centraliza a imagem */
    min-height: 100vh; /* Faz o container ocupar toda a altura da janela */
    display: flex; /* Centraliza o formulário no meio da tela */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Estilo adicional para o box de login */
.login-box {
    background-color: rgba(0, 0, 0, 0.8); /* Fundo escuro com transparência */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para destaque */
    padding: 30px;
    max-width: 400px;
    width: 100%;
}



/* Estilo básico para o calendário */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas para os dias da semana */
    gap: 5px;
    background-color: #2c2c2c; /* Cor do fundo do calendário */
    padding: 10px;
    border-radius: 8px;
}

#calendar div {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #444; /* Bordas das células */
    padding: 10px;
    color: #fff; /* Cor do texto */
    background-color: #333; /* Cor do fundo das células */
    border-radius: 4px;
}

#calendar .day-header {
    font-weight: bold;
    background-color: #444; /* Fundo dos cabeçalhos (dias da semana) */
}

#calendar .current-day {
    background-color: #61dafb; /* Destaque para o dia atual */
    color: #000; /* Cor do texto do dia atual */
}

/* Botão de Voltar no canto esquerdo */
.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #6c757d; /* Cinza */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px; /* Espaço abaixo do botão */
    position: absolute; /* Posição absoluta para mover */
    left: 20px; /* Distância da esquerda */
}

.btn-back i {
    margin-right: 8px; /* Espaço entre o ícone e o texto */
    font-size: 16px;
}

.btn-back:hover {
    background-color: #5a6268; /* Cinza mais escuro no hover */
}





/* Botão de Adicionar Integração */
.btn-add-calendar {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745; /* Verde */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-calendar:hover {
    background-color: #218838; /* Verde mais escuro */
}

.calendar-day .event {
    background-color: #ccf38e; 
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.calendar-day .event:hover {
    background-color: #f1f8ef; /* Cor ao passar o mouse */
}

.calendar-title {
    text-align: center; /* Centraliza horizontalmente */
    color: #ffffff; /* Altera a cor para branco */
    margin-bottom: 20px; /* Adiciona espaçamento abaixo, se necessário */
    font-size: 2rem; /* Ajusta o tamanho da fonte */
    font-weight: bold; /* Torna o texto mais destacado */
}


.calendar-day .event a {
    
    text-decoration: none; /* Remove o sublinhado */
    color: #000;
    
    
}
/* Estilo principal do calendário */
.calendar-container {
    max-width: 600px; /* Limita o tamanho do calendário */
    margin: 20px auto;
    padding: 20px;
    background-color: #0D0C0D;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-align: center;
}

/* Grade do calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas fixas */
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
}

/* Células dos dias da semana */
.calendar-weekday {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #444;
    border-radius: 4px;
}

/* Células dos dias */
.calendar-day {
    position: relative;
    width: 60px; /* Largura fixa */
    height: 60px; /* Altura fixa */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #444;
    background-color: #333;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

/* Células vazias ocupam espaço corretamente */
.calendar-day.empty {
    background: transparent;
    border: none;
    visibility: hidden;
}

/* Estiliza o número do dia */
.calendar-day span {
    display: block;
    font-size: 16px;
    color: white;
    
}

/* Dia atual */
.calendar-today {
    background-color: #61dafb;
    color: #000;
    font-weight: bold;
}

/* Badge de notificação */
.notification-badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
}


/* Garantir que os eventos fiquem organizados */
.calendar-day .event {
    background-color: #8ef39f;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 90%;
}

.current-day {
    background-color: #61dafb; /* Azul claro */
    color: #000; /* Texto preto para contraste */
    font-weight: bold;
    border-radius: 50%; /* Deixa o destaque arredondado */
}

/*CALENDAR DA DASHBOARD*/

/* Mini calendário da dashboard */
/* 🔥 Ajustando o calendário na Dashboard 🔥 */
#dashboard-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas fixas */
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    background-color: #2c2c2c;
    width: 100%; /* Garante que o calendário ocupe o espaço correto */
}

/* Estilos dos dias da semana */
#dashboard-calendar .calendar-weekday {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #444;
    border-radius: 4px;
}

/* 🔥 Ajustando os dias para ficarem bem alinhados 🔥 */
#dashboard-calendar .calendar-day {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    flex-direction: column;  /* Garante que o número e o badge fiquem alinhados */
    justify-content: center;
    align-items: center;
    border: 1px solid #444;
    background-color: #333;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Garantindo que os números dos dias fiquem bem posicionados */
#dashboard-calendar .calendar-day span {
    font-size: 14px;
    position: relative;
    z-index: 2; /* Garante que o número do dia fique acima do fundo */
}

/* 🔥 Corrigindo a posição dos badges 🔥 */
#dashboard-calendar .notification-badge {
    position: absolute; /* 🔥 Ajustado para ficar no lugar certo */
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
}

.notification-badge.overdue {
    background-color: red !important;
}

.notification-badge.pending {
    background-color: orange !important;
}


#dashboard-calendar .current-day {
    background-color: #61dafb; /* Azul claro */
    color: #000; /* Texto preto para melhor contraste */
    font-weight: bold;
    border-radius: 50%; /* Deixa o destaque mais arredondado */
}

.followups-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1c1c1c;
    color: #fff;
    border-radius: 8px;
    text-align: center;
}

.followup-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.followup-card {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.followup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.status {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Cores para status */
.status.initial { background-color: #007bff; color: white; }
.status.negotiation { background-color: #ffc107; color: black; }
.status.completed { background-color: #28a745; color: white; }

.description {
    font-style: italic;
}

.followup-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #bbb;
}
.followups-title {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #5a6268;
}

.followup-actions {
    margin-top: 10px;
    text-align: left;
}

.followup-actions a {
    font-size: 15px;
}
.visit-link {
    background-color: #2c2c2c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.visit-link:hover {
    background-color: #0056b3;
}

.btn-concluir {
    background-color: #28a745; /* Verde */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-concluir {
    background-color: #28a745; /* Verde */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-concluir:hover {
    background-color: #218838;
}

.btn-concluir:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.success-message {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    display: none;
}

/* =============================================================================
   Shell global (ds-layout): tokens híbridos, estrutura e acessibilidade
   Compatível com design-system.css / app-layout.css (carregados depois)
   ============================================================================= */
:root {
    --surface-0: #0f172a;
    --surface-1: #111827;
    --surface-2: #1e293b;
    --accent: #16a34a;
    --accent-ring: rgba(22, 163, 74, 0.45);
    --status-success: #16a34a;
    --status-warning: #d97706;
    --status-danger: #dc2626;
    --status-info: #2563eb;
    --shadow-card-elevated: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card-lift: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    /* Espaço à esquerda do topbar alinhado ao botão do menu (shell global) */
    --app-topbar-padding-inline-start: 3.5rem;
}

body.ds-layout.app-shell {
    overflow-x: hidden;
}

.app-shell .ds-main-wrap.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

.app-sidebar {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.title-lg {
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ds-text, #111827);
}

.subtitle-md {
    font-size: var(--ds-text-md, 1rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ds-text, #111827);
}

.meta-sm {
    font-size: var(--ds-text-sm, 0.875rem);
    line-height: 1.45;
    color: var(--ds-text-muted, #6b7280);
}

.card-elevated {
    background: var(--ds-surface, #fff);
    border-radius: var(--ds-radius-lg, 12px);
    border: 1px solid var(--ds-border, #e5e7eb);
    box-shadow: var(--shadow-card-elevated);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card-elevated:hover {
    box-shadow: var(--shadow-card-lift);
}

/* Semântica de status (badges / labels) */
.status-pill--success {
    color: var(--status-success);
    background: rgba(22, 163, 74, 0.12);
}
.status-pill--warning {
    color: var(--status-warning);
    background: rgba(217, 119, 6, 0.14);
}
.status-pill--danger {
    color: var(--status-danger);
    background: rgba(220, 38, 38, 0.12);
}
.status-pill--info {
    color: var(--status-info);
    background: rgba(37, 99, 235, 0.12);
}

header.app-topbar {
    position: relative;
    z-index: 20;
}

header.app-topbar.app-topbar--offset-shell {
    padding-left: var(--app-topbar-padding-inline-start);
}

/* Duração da transição da sidebar (Tailwind CDN não inclui duration-250) */
aside.app-sidebar.app-sidebar--transition {
    transition-duration: 250ms;
}

.app-breadcrumb-link:focus-visible,
.app-header-icon-btn:focus-visible,
.app-header-profile:focus-visible,
.app-sidebar-brand:focus-visible,
.app-shell-menu-trigger:focus-visible,
.app-shell-menu-close:focus-visible,
a.app-nav-link:focus-visible,
button.app-nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.app-topbar-actions .app-header-icon-btn,
.app-topbar-actions .app-header-profile {
    box-sizing: border-box;
}

.app-header-icon-btn {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

/* Hardening a11y: feedback assíncrono, disabled/loading/erro, skeleton (layout global) */
.feedback-error {
    color: var(--status-danger, #dc2626);
}

.feedback-error--panel {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.feedback-loading {
    color: var(--ds-text-muted, #6b7280);
}

body.ds-layout.app-shell button:disabled,
body.ds-layout.app-shell button[disabled],
body.ds-layout.app-shell .home-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

body.ds-layout.app-shell a.home-btn[aria-disabled="true"] {
    pointer-events: none;
}

body.ds-layout.app-shell [aria-busy="true"] {
    cursor: progress;
}

.programacao-semanal-root .programacao-toolbar .sidebar-button,
.programacao-semanal-root .programacao-toolbar .programacao-toolbar__btn-carregar {
    min-height: 44px;
}

.programacao-semanal-root .btn-toggle-theme {
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
}

.programacao-toolbar-more__item {
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.skeleton-block {
    min-height: 120px;
    box-sizing: border-box;
}

body.ds-layout.app-shell .programacao-semanal-root .programacao-toolbar button:focus-visible,
body.ds-layout.app-shell .programacao-semanal-root .programacao-toolbar .programacao-toolbar-more__summary:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 2px;
}

/* =============================================================================
   Home dashboard (colheita) — hero, KPIs, ações, alertas, skeleton
   Mobile-first, sem overflow horizontal
   ============================================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-dashboard {
    width: 100%;
    max-width: min(80rem, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem) clamp(2rem, 5vw, 3rem);
    box-sizing: border-box;
    overflow-x: clip;
    color: var(--ds-text, #111827);
}

.home-section-head {
    margin-bottom: 1rem;
}

.home-section-title {
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--ds-text, #111827);
    margin: 0 0 0.25rem;
}

.home-section-desc {
    font-size: 0.875rem;
    color: var(--ds-text-muted, #6b7280);
    margin: 0;
    line-height: 1.45;
}

/* Hero */
.home-hero {
    position: relative;
    border-radius: var(--ds-radius-lg, 12px);
    overflow: hidden;
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--ds-border, #e5e7eb);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.home-hero:hover {
    box-shadow: var(--shadow-card-lift);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 45%, #eef2ff 100%);
    opacity: 1;
}

.home-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    z-index: 1;
}

@media (min-width: 48rem) {
    .home-hero__inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
    }
}

.home-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, #16a34a);
    margin: 0 0 0.5rem;
}

.home-hero__title {
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.home-hero__lead {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 1rem;
    max-width: 36rem;
    line-height: 1.5;
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 180ms ease, transform 180ms ease;
}

.home-chip i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.home-chip__value {
    font-weight: 700;
    margin-left: 0.125rem;
}

.home-chip--accent {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.home-chip--muted {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.home-chip:hover {
    transform: translateY(-1px);
}

.home-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: min(100%, 18rem);
    flex-shrink: 0;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.home-btn:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 2px;
}

.home-btn--primary {
    background: #16a34a;
    color: #fff;
}

.home-btn--primary:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
}

.home-hero__search {
    position: relative;
    width: 100%;
}

.home-hero__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8125rem;
    pointer-events: none;
}

.home-search-input {
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: Inter, system-ui, sans-serif;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    box-sizing: border-box;
}

.home-search-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* KPIs */
.home-kpis {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.home-kpis__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 30rem) {
    .home-kpis__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 56rem) {
    .home-kpis__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.home-kpi {
    min-height: 120px;
    padding: 1rem 1.125rem;
    border-radius: var(--ds-radius-lg, 12px);
    border: 1px solid var(--ds-border, #e5e7eb);
    background: var(--ds-surface, #fff);
    box-shadow: var(--shadow-card-elevated);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.home-kpi:hover {
    box-shadow: var(--shadow-card-lift);
    transform: translateY(-2px);
}

.home-kpi__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.home-kpi__value {
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.home-kpi__value--warn {
    color: var(--status-warning, #d97706);
}

.home-kpi__value--skeleton {
    display: inline-block;
    min-width: 2.5rem;
    border-radius: 0.25rem;
    animation: home-skeleton-pulse 1.2s ease-in-out infinite;
    color: transparent;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
}

.home-kpi__hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: auto;
}

/* Ações (cards) */
.home-actions-grid {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.home-actions-grid__inner {
    min-width: 0;
}

.home-action-card {
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-action-card:hover {
    transform: translateY(-3px);
}

.dash-card.home-action-card:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--accent-ring, rgba(22, 163, 74, 0.28));
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 40rem) {
    .dash-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.dash-card {
    position: relative;
    display: block;
    padding: 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid;
    text-decoration: none;
    overflow: hidden;
    min-width: 0;
}

.dash-card-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dash-card-green:hover {
    border-color: #86efac;
}

.dash-card-amber {
    background: #fffbeb;
    border-color: #fde68a;
}

.dash-card-amber:hover {
    border-color: #fcd34d;
}

.dash-card-violet {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.dash-card-violet:hover {
    border-color: #c4b5fd;
}

.dash-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dash-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
}

.dash-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.375rem;
    font-family: Poppins, Inter, sans-serif;
}

.dash-card-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.dash-card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Calendário strip */
.home-calendar-block {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.home-calendar-block__hint {
    margin-bottom: 0.75rem;
}

.home-calendar-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

.home-cal-btn {
    flex: 0 1 auto;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.home-cal-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.home-cal-btn--active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.home-cal-btn:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 2px;
}

/* Alertas */
.home-alerts {
    border-radius: var(--ds-radius-lg, 12px);
    border: 1px solid var(--ds-border, #e5e7eb);
    background: var(--ds-surface, #fff);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--shadow-card-elevated);
}

.home-alerts__head {
    margin-bottom: 1rem;
}

.home-alerts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-alert-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.home-alert-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.home-alert-item__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

.home-alert-item__icon--info {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.home-alert-item__icon--neutral {
    background: #e2e8f0;
    color: #475569;
}

.home-alert-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.home-alert-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.home-alert-item__meta {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.home-alert-item__meta a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.home-alert-item__meta a:hover {
    text-decoration: underline;
}

.home-alert-item__meta a:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 2px;
    border-radius: 0.125rem;
    text-decoration: none;
}

.home-alerts__footnote {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 1rem 0 0;
    line-height: 1.4;
}

/* Skeleton (reserva de espaço) */
.home-skeleton-block {
    display: block;
    border-radius: 0.5rem;
    background: #e5e7eb;
    animation: home-skeleton-pulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.home-skeleton-block--icon {
    width: 2rem;
    height: 2rem;
}

.home-skeleton-line {
    display: block;
    height: 0.625rem;
    border-radius: 999px;
    background: #e5e7eb;
    animation: home-skeleton-pulse 1.2s ease-in-out infinite;
}

.home-skeleton-line--sm {
    width: 40%;
    max-width: 8rem;
}

.home-skeleton-line--lg {
    width: 75%;
    max-width: 14rem;
    margin-top: 0.5rem;
}

.home-alert-item--skeleton {
    opacity: 0.85;
    pointer-events: none;
}

.home-alert-item__body--skeleton {
    flex: 1;
    padding-top: 0.125rem;
}

@keyframes home-skeleton-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

/* --- Programação semanal: toolbar em 2 camadas (integração ao shell global) --- */
.programacao-semanal-root .programacao-toolbar {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: var(--bg-card, #1e293b);
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}

.programacao-semanal-root .programacao-toolbar--navegacao {
    margin-bottom: 1.25rem;
}

.programacao-toolbar__head {
    margin-bottom: 0.25rem;
}

/* Barra de cenário: título + recolher; uma linha com select, carregar e ações */
.programacao-toolbar--contexto .programacao-toolbar__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.programacao-toolbar--contexto .programacao-toolbar__topbar-text {
    min-width: 0;
    flex: 1;
}

.programacao-toolbar--contexto .programacao-toolbar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.programacao-toolbar__resumo {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
    word-break: break-word;
}

.programacao-toolbar__toggle-expand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
    background: var(--bg-card, #1e293b);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.programacao-toolbar__toggle-expand:hover {
    background: var(--bg-hover, rgba(148, 163, 184, 0.12));
    color: var(--text-primary, #f1f5f9);
    border-color: var(--accent-color, #16a34a);
}

.programacao-toolbar__toggle-icon {
    transition: transform 0.2s ease;
}

.programacao-toolbar--contexto.is-collapsed .programacao-toolbar__contexto-body {
    display: none;
}

.programacao-toolbar--contexto.is-collapsed .programacao-toolbar__toggle-icon {
    transform: rotate(180deg);
}

.programacao-toolbar__contexto-body {
    padding-top: 0.15rem;
}

.programacao-toolbar__subtitle {
    margin: 0 0 0.75rem;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.programacao-toolbar__linha-principal {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    justify-content: flex-start;
}

/* Select + Carregar sempre juntos; demais ações à direita */
.programacao-toolbar__cenario-e-carregar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-width: 0;
}

.programacao-toolbar__cenario-e-carregar .programacao-toolbar__campo-cenario {
    flex: 1 1 auto;
    width: min(32rem, 100%);
    max-width: min(32rem, 100%);
    min-width: min(100%, 11rem);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.programacao-toolbar__cenario-e-carregar .programacao-toolbar__btn-carregar {
    flex-shrink: 0;
}

.programacao-toolbar--contexto .programacao-toolbar__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.programacao-semanal-root .programacao-toolbar__btn-carregar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f1f5f9);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.programacao-semanal-root .programacao-toolbar__btn-carregar:hover:not(:disabled) {
    background: var(--bg-hover, rgba(148, 163, 184, 0.12));
    border-color: var(--accent-color, #16a34a);
}

.programacao-semanal-root .programacao-toolbar__btn-carregar:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.programacao-toolbar__btn-icon {
    font-size: 0.875rem;
    opacity: 0.95;
}

.programacao-toolbar__btn-secundario {
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f1f5f9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.programacao-toolbar__btn-secundario:hover {
    background: var(--bg-hover, rgba(148, 163, 184, 0.12));
    border-color: var(--accent-color, #16a34a);
}

.programacao-toolbar-actions--mesma-linha {
    margin-top: 0 !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: min(100%, 17rem);
    margin-left: auto;
}

.programacao-toolbar__field--meses {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .programacao-toolbar__field--meses {
        flex: 2 1 20rem;
    }
}

.programacao-toolbar__field--meses > .programacao-toolbar__label {
    margin: 0 0 0.35rem;
}

/* Chips + ações na mesma linha (ações logo após os meses) */
.meses-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    width: 100%;
}

.meses-pills-row > .meses-pills {
    display: inline-flex;
    flex: 0 1 auto;
    max-width: 100%;
}

.meses-pills-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.meses-pills__action-btn {
    appearance: none;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.4));
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f1f5f9);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    min-height: 36px;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meses-pills__action-btn:hover {
    border-color: var(--accent-color, #16a34a);
    background: var(--bg-hover, rgba(148, 163, 184, 0.12));
}

.meses-pills__action-btn:focus-visible {
    outline: 2px solid var(--accent-color, #16a34a);
    outline-offset: 2px;
}

.meses-pills__action-btn--muted {
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

.meses-pills__action-btn--muted:hover {
    color: var(--text-primary, #f1f5f9);
    border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .meses-pills__action-btn {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.45);
    color: #0f172a;
}

body[data-theme="light"] .meses-pills__action-btn--muted {
    color: #64748b;
}

.meses-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-width: 100%;
}

.meses-pills__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
    background: var(--bg-input, #0f172a);
    color: var(--text-primary, #f1f5f9);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    min-height: 44px;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.meses-pills__btn:hover {
    border-color: var(--accent-color, #16a34a);
    background: var(--bg-hover, rgba(148, 163, 184, 0.1));
}

.meses-pills__btn:focus-visible {
    outline: 2px solid var(--accent-color, #16a34a);
    outline-offset: 2px;
}

.meses-pills__btn.is-selected {
    background: rgba(22, 163, 74, 0.22);
    border-color: var(--accent-color, #16a34a);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .programacao-toolbar__toggle-icon,
    .meses-pills__btn {
        transition: none;
    }
}

body[data-theme="light"] .meses-pills__btn {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="light"] .meses-pills__btn.is-selected {
    background: rgba(22, 163, 74, 0.18);
    border-color: #16a34a;
}

.programacao-toolbar__select--unidade {
    min-width: min(100%, 12rem);
    max-width: 20rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-light, rgba(148, 163, 184, 0.35));
    border-radius: 8px;
    font-size: 0.8125rem;
    background: var(--bg-input, #1e293b);
    color: var(--text-primary, #f1f5f9);
    cursor: pointer;
}

.programacao-toolbar__btn-filtrar-mapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--accent-success, #22c55e);
    background: transparent;
    color: var(--accent-success, #22c55e);
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.programacao-toolbar__btn-filtrar-mapa:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.12);
}
.programacao-toolbar__btn-filtrar-mapa:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.programacao-toolbar__grid--cenario {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.programacao-toolbar__campo-cenario .programacao-toolbar__select {
    max-width: 100%;
}

.programacao-semanal-root .programacao-toolbar__select {
    width: 100%;
    max-width: min(32rem, 100%);
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-light, rgba(148, 163, 184, 0.35));
    border-radius: 6px;
    font-size: 0.8125rem;
    background: var(--bg-input, #1e293b);
    color: var(--text-primary, #f1f5f9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
    .programacao-toolbar__grid--cenario {
        grid-template-columns: minmax(8rem, auto) minmax(12rem, 28rem) auto;
    }
}

.programacao-toolbar__btn-frentes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
    background: var(--bg-card, #1e293b);
    color: var(--text-primary, #f1f5f9);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    min-height: 44px;
}

.programacao-toolbar__btn-frentes:hover:not(:disabled) {
    background: var(--bg-hover, rgba(148, 163, 184, 0.12));
    border-color: var(--accent-color, #16a34a);
}

.programacao-toolbar__btn-frentes:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Modal: lista de frentes (não ocupa a área do mapa) */
.modal-frentes-overlay {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.modal-frentes-dialog {
    width: min(100%, 36rem);
    /* Altura mínima: sem isso, flex:1 no corpo colapsa quase a zero (só max-height não define caixa) */
    min-height: min(52vh, 28rem);
    max-height: min(88vh, 42rem);
    height: min(75vh, 38rem);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.modal-frentes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    flex-shrink: 0;
}

.modal-frentes-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    letter-spacing: -0.02em;
}

.modal-frentes-close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-frentes-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-primary, #f1f5f9);
}

.modal-frentes-close:focus-visible {
    outline: 2px solid var(--accent, #16a34a);
    outline-offset: 2px;
}

.modal-frentes-card.card-frentes {
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Garante área útil mesmo com poucos itens */
    min-height: min(40vh, 16rem);
}

.modal-frentes-lista.lista-frentes-scroll {
    flex: 1 1 auto;
    min-height: min(32vh, 14rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.programacao-toolbar-actions--primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.programacao-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.programacao-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

@media (max-width: 639px) {
    .programacao-toolbar__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .programacao-toolbar__field {
        flex: 0 0 auto;
    }
}

.programacao-toolbar-more {
    position: relative;
    list-style: none;
}

.programacao-toolbar-more__summary {
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.35);
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
}

.programacao-toolbar-more__summary::-webkit-details-marker {
    display: none;
}

.programacao-toolbar-more__body {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1200;
    min-width: min(16rem, 85vw);
    padding: 0.35rem 0;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--bg-card, #1e293b);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.programacao-toolbar-more__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
}

.programacao-toolbar-more__item:hover {
    background: rgba(148, 163, 184, 0.12);
}

.programacao-toolbar-more__item:focus-visible {
    background: rgba(148, 163, 184, 0.12);
    outline: 2px solid var(--color-primary, #16a34a);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

@media (min-width: 640px) {
    .programacao-toolbar-more {
        display: none !important;
    }
}

@media (max-width: 639px) {
    .programacao-toolbar__action-desktop {
        display: none !important;
    }
}

.programacao-semanal-root .programacao-card-frentes {
    margin-bottom: 1rem;
}
