* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tema com as cores do Espírito Santo - Atualizado para combinar com o título SVG */
:root {
    --es-blue: #3B82F6; /* Azul médio do gradiente SVG */
    --es-blue-dark: #1E40AF; /* Azul escuro do gradiente SVG */
    --es-pink: #BE185D; /* Rosa do gradiente SVG */
    --es-pink-dark: #9D174D; /* Versão mais escura do rosa para hover */
    --es-white: #FFFFFF; /* Branco */
    --es-light-blue: #EFF6FF; /* Azul claro para fundos - ajustado para o novo azul */
    --es-light-pink: #FCE7F3; /* Rosa claro para destaques - ajustado para o novo rosa */
    --es-gray: #F0F2F5; /* Cinza claro para fundos secundários */
    --es-dark-gray: #333333; /* Cinza escuro para textos */
    --es-success: #10B981; /* Verde esmeralda para sucesso */
    --es-success-light: #ECFDF5; /* Verde claro para fundos de sucesso */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--es-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

input, button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: var(--es-blue);
    color: var(--es-white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--es-blue-dark);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1; /* Valor baixo para garantir que fique abaixo do cabeçalho */
}

.card {
    background: var(--es-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 2px solid var(--es-pink);
    position: relative;
    z-index: 1; /* Valor baixo para garantir que fique abaixo do cabeçalho */
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1; /* Mantém o mesmo z-index mesmo no hover */
}

.card img {
    width: 100%;
    height: 144px;
    object-fit: cover;
}

.card-content {
    padding: 8px;
}

.card h3 {
    margin-bottom: 6px;
    color: var(--es-blue);
    font-size: 12px;
}

.card p {
    color: var(--es-dark-gray);
    margin-bottom: 3px;
    font-size: 9px;
}

@media (max-width: 80px) {
    .search-container {
        flex-direction: column;
    }
    
    input, button {
        width: 100%;
    }
}

.footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    background-color: var(--es-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid var(--es-pink);
}

.footer p {
    color: #333;
    font-size: 1.1em;
}

#weekNavigation {
    margin-top: 10px;
}

#weekNavigation button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#dateFilterButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 13px;
}

#dateFilterButtons button {
    padding: 6px 8px;
    font-size: 10px;
    flex: 1 0 calc(50% - 3px);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--es-blue);
}

#dateFilterButtons button:hover {
    background-color: var(--es-blue-dark);
}

/* Estilo para o tooltip - com cor de fundo mais clara */
.tooltip {
    position: absolute;
    background-color: rgba(59, 130, 246, 0.85); /* Versão semi-transparente do novo azul */
    color: var(--es-white);
    padding: 13px; /* Reduzido de 15px para 13px */
    border-radius: 3px; /* Reduzido de 5px para 3px */
    max-width: 300px;
    z-index: 1090; /* Valor menor que o do cabeçalho, mas ainda acima do conteúdo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Permite que o mouse "passe através" do tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.5;
    font-size: 10px; /* Reduzido de 12px para 10px */
    text-align: left;
    border-left: 3px solid var(--es-pink);
}

.tooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--es-light-pink);
}

.tooltip.visible {
    opacity: 1;
}

/* Estilo para palavras destacadas no tooltip */
.tooltip .highlight {
    color: var(--es-light-pink);
    font-weight: bold;
}

/* Ajustes para os campos de data lado a lado */
.date-range-container {
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.date-range {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.date-range label {
    margin-bottom: 3px;
    font-size: 9px;
    white-space: nowrap;
}

.date-range input {
    width: 100%;
    padding: 4px 6px;
    font-size: 10px;
}

/* Estilos para a barra lateral esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: var(--es-white);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1080; /* Valor menor que o do cabeçalho, mas ainda acima do conteúdo */
    font-size: 12px;
    border-right: 1px solid var(--es-light-blue);
    transform: translateX(0); /* Inicialmente visível */
    will-change: transform; /* Melhora o desempenho da animação */
}

.sidebar.collapsed {
    transform: translateX(-100%) !important; /* Move para fora da tela à esquerda */
    visibility: hidden; /* Garante que a sidebar fique completamente oculta */
}

.sidebar .toggle-btn {   /* botão da direita */
    position: absolute;
    right: 15px;
    top: 15px;
    transform: none;
    color: white;
}

.sidebar .toggle-btn:hover {
    color: var(--es-light-pink);
}

.sidebar .sidebar-header {
    background-color: var(--es-blue);
    color: white;
    border-bottom: 1px solid var(--es-blue-dark);
    padding-right: 50px; /* Espaço para o botão de toggle */
}

.sidebar .sidebar-header h2 {
    color: white;
}

/* Animação para as setas */
.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn:hover i {
    animation: pulse 1.5s infinite;
}

.sidebar-content {
    padding: 13px;
}

.filter-section {
    margin-bottom: 18px;
}

.hidden {
    display: none;
}

/* Estilos para o conteúdo principal */
.main-content {
    margin-left: 300px;
    margin-top: 150px;
    transition: margin-left 0.3s ease;
    padding: 20px;
    position: relative;
    z-index: 1; /* Valor baixo para garantir que fique abaixo do cabeçalho */
}

.main-content.expanded {
    margin-left: 0 !important;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 300px;
    background-color: transparent; /* Alterado para transparente para mostrar o gradiente do SVG */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1100; /* Aumentado para ficar acima de todos os outros elementos */
    padding: 0; /* Removido o padding para o SVG ocupar todo o espaço */
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o conteúdo */
    transition: left 0.3s ease;
    color: var(--es-white);
    height: 150px; /* Altura fixa para o cabeçalho */
    overflow: hidden; /* Evita que o SVG ultrapasse o cabeçalho */
}

.main-content.expanded .header {
    left: 0 !important;
}

/* Estilos para o título SVG */
.title-svg {
    width: 100%;
    height: 200px;
    margin-top: 10px;
    position: relative;
    z-index: 100; /* Reduzido para estar abaixo do dropdown */
}

/* Ajuste para o botão de toggle no cabeçalho */
.header .toggle-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.2); /* Fundo semi-transparente para destacar */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Responsividade para o cabeçalho */
@media (max-width: 768px) {
    .header {
        height: 100px;
        z-index: 1100; /* Mantém o mesmo z-index em dispositivos móveis */
    }
}

@media (max-width: 480px) {
    .header {
        height: 80px;
        z-index: 1100; /* Mantém o mesmo z-index em dispositivos móveis */
    }
}

/* Botões de largura total */
.full-width-btn {
    width: 100%;
    margin-bottom: 10px;
    background-color: var(--es-pink);
}

.full-width-btn:hover {
    background-color: var(--es-pink-dark); /* Rosa mais escuro */
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 100px;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    .header {
        left: 0;
        z-index: 1100; /* Mantém o mesmo z-index em dispositivos móveis */
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 80px;
    }
}

/* Ajustes para os botões na barra lateral */
.sidebar-content button {
    padding: 4px 8px;
    font-size: 9px;
}

/* Ajustes para a navegação na barra lateral */
.navigation-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
    text-align: center;
}

.navigation-container div {
    display: flex;
    gap: 3px;
}

.navigation-container button {
    flex: 1;
    padding: 4px 6px;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--es-pink);
}

.navigation-container button:hover {
    background-color: var(--es-pink-dark);
}

/* Ajustes para o weekNavigation */
#weekNavigation {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 8px 0;
    justify-content: center;
}

#weekNavigation button {
    padding: 3px 6px;
    font-size: 9px;
    flex: 0 0 auto;
}

/* Ajustes para dispositivos com telas menores */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .header {
        left: 250px;
        z-index: 1100; /* Mantém o mesmo z-index em dispositivos com telas menores */
    }
    
    .right-sidebar {
        width: 250px;
    }
    
    .main-content.right-expanded {
        margin-right: 250px;
    }
    
    .main-content.right-expanded:not(.expanded) {
        margin-right: 250px;
        margin-left: 250px;
    }
    
    .main-content.right-expanded.expanded {
        margin-right: 250px;
        margin-left: 0;
    }
    
    .main-content.right-expanded .header {
        right: 250px;
    }
    
    .main-content.right-expanded:not(.expanded) .header {
        right: 250px;
        left: 250px;
    }
    
    .main-content.right-expanded.expanded .header {
        right: 250px;
        left: 0;
    }
}

@media (max-width: 768px) {
    #dateFilterButtons button {
        flex: 1 0 calc(50% - 5px);
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        left: 0;
        z-index: 1100; /* Mantém o mesmo z-index em dispositivos móveis */
    }
    
    .right-sidebar {
        width: 100%;
        z-index: 1080;
    }
    
    .main-content.right-expanded {
        margin-right: 0;
    }
    
    .main-content.right-expanded:not(.expanded) {
        margin-right: 0;
        margin-left: 0;
    }
    
    .main-content.right-expanded.expanded {
        margin-right: 0;
        margin-left: 0;
    }
    
    .main-content.right-expanded .header {
        right: 0;
    }
    
    .main-content.right-expanded:not(.expanded) .header {
        right: 0;
        left: 0;
    }
    
    .main-content.right-expanded.expanded .header {
        right: 0;
        left: 0;
    }
}

/* Diminuir o tamanho dos caracteres na barra lateral */
.sidebar label {
    font-size: 10px;
    font-weight: bold;
}

.sidebar input, 
.sidebar select {
    font-size: 10px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: var(--es-white);
}

input:focus, select:focus {
    border-color: var(--es-pink);
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 51, 102, 0.2);
}

/* Mensagens de status */
#connectionMessage p {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#connectionMessage p[style*="color: red"] {
    background-color: var(--es-light-pink);
    border-left: 4px solid var(--es-pink);
}

#connectionMessage p[style*="color: green"] {
    background-color: var(--es-success-light);
    border-left: 4px solid var(--es-success);
}

#connectionMessage p[style*="color: blue"] {
    background-color: var(--es-light-blue);
    border-left: 4px solid var(--es-blue);
}

/* Rodapé fixo para mensagens */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 300px;
    right: 0;
    background-color: var(--es-white);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 1050;
    transition: left 0.3s ease;
    max-height: 30px;
    overflow: hidden;
    border-top: 3px solid var(--es-blue);
}

/* Ajuste para o rodapé fixo quando a barra lateral estiver expandida */
.main-content.expanded + .fixed-footer {
    left: 0;
}

/* Ajustar o padding do conteúdo principal para não ficar escondido pelo rodapé fixo */
.main-content {
    padding-bottom: 120px;
}

/* Ajustes para dispositivos com telas menores */
@media (max-width: 1024px) {
    .fixed-footer {
        left: 250px;
        z-index: 1050; /* Mantém o mesmo z-index em dispositivos com telas menores */
    }
}

@media (max-width: 768px) {
    .fixed-footer {
        left: 0;
        z-index: 1050; /* Mantém o mesmo z-index em dispositivos móveis */
    }
}

/* Estilo para as mensagens no rodapé */
#connectionMessage {
    text-align: center;
}

#connectionMessage p {
    margin: 0;
    padding: 6px;
    border-radius: 4px;
}

/* Estilo para o marquee de eventos - altura reduzida em 50% */
.marquee-container {
    display: flex;
    align-items: center;
    background-color: var(--es-blue);
    color: var(--es-white);
    padding: 4px 0; /* Reduzido de 8px para 4px */
    border-radius: 4px;
    margin-bottom: 5px; /* Reduzido de 10px para 5px */
    overflow: hidden;
    height: 28px; /* Altura fixa reduzida */
}

.marquee-label {
    background-color: var(--es-pink);
    color: var(--es-white);
    font-weight: bold;
    padding: 2px 8px; /* Reduzido de 4px 10px para 2px 8px */
    margin-right: 15px;
    border-radius: 0 4px 4px 0;
    min-width: 50px; /* Reduzido de 60px para 50px */
    text-align: center;
    font-size: 11px; /* Tamanho de fonte reduzido */
}

.marquee {
    white-space: nowrap;
    animation: marquee 120s linear infinite;
    padding-right: 50px;
    font-size: 12px; /* Tamanho de fonte reduzido */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Estilos para a seção de mensagens na barra lateral */
.sidebar-messages {
    margin-top: 18px;
    padding: 8px;
    border-radius: 4px;
    font-size: 9px;
    max-height: 150px;
    overflow-y: hidden;
    background-color: var(--es-light-blue);
    border: 1px solid var(--es-blue);
}

/* Estilo para a mensagem mais recente (fixa) */
.sidebar-messages p:last-child {
    margin-bottom: 0;
    padding: 6px;
    border-radius: 4px;
    font-weight: bold;
}

.sidebar-messages p.error {
    background-color: var(--es-light-pink);
    border-left: 3px solid var(--es-pink);
    color: var(--es-pink);
}

.sidebar-messages p.success {
    background-color: var(--es-success-light);
    border-left: 3px solid var(--es-success);
    color: var(--es-success);
}

.sidebar-messages p.info {
    background-color: var(--es-light-blue);
    border-left: 3px solid var(--es-blue);
    color: var(--es-blue);
}

/* Estilo para o marquee na tela principal */
.main-marquee {
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ajuste para o marquee em telas menores */
@media (max-width: 768px) {
    .main-marquee {
        margin: 10px 0;
    }
}

/* Estilo para o marquee no rodapé fixo */
.footer-marquee {
    margin-bottom: 0; /* Removido margin-bottom */
    border-radius: 4px;
}

/* Estilos para o container de geolocalização */
.geolocation-container {
    display: none; /* Oculta o container antigo */
}

#locationDisplay {
    display: none; /* Oculta o botão antigo */
}

.location-btn {
    display: none; /* Oculta o botão antigo */
}

/* Estilos para o elemento de geolocalização no topo da sidebar */
.location-display {
    background-color: #3a7bd5; /* Cor de fundo diferente */
    color: white; /* Texto branco para contraste */
    padding: 8px 13px; /* Reduzido de 10px 15px para 8px 13px */
    font-size: 12px; /* Reduzido de 14px para 12px */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px; /* Reduzido de 10px para 8px */
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block !important; /* Força a exibição do elemento */
}

/* Estilos para o elemento de geolocalização no cabeçalho da sidebar - DESTACADO */
.location-display-header {
    color: #1E40AF; /* Azul mais escuro para maior destaque */
    font-size: 12px; /* Tamanho base */
    margin-top: 5px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.location-display-header.destacado {
    font-size: 14px; /* Texto maior */
    font-weight: 600; /* Mais negrito */
    color: #1E40AF; /* Azul mais escuro para melhor visibilidade */
    background-color: rgba(219, 234, 254, 0.4); /* Fundo azul claro semi-transparente */
    padding: 8px;
    border-radius: 20px; /* Bordas mais arredondadas */
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2); /* Sombra suave */
    letter-spacing: 0.5px; /* Espaçamento entre letras para melhor legibilidade */
}

.location-display-header.destacado i {
    color: #EF4444; /* Vermelho para o ícone de localização como no Google Maps */
    margin-right: 6px;
    font-size: 18px; /* Aumentado para 18px pois o ícone fa-map-marker é mais fino */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); /* Sombra suave para o ícone */
    vertical-align: middle; /* Melhor alinhamento vertical */
}

.location-display-header.destacado:hover {
    background-color: rgba(219, 234, 254, 0.6); /* Fundo ligeiramente mais forte ao passar o mouse */
    transform: translateY(-1px); /* Leve efeito de elevação */
    box-shadow: 0 3px 6px rgba(59, 130, 246, 0.3); /* Sombra um pouco mais forte */
}

/* Ajustando o cabeçalho da sidebar para acomodar a geolocalização */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    border-bottom: 1px solid var(--es-light-blue);
    position: relative;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--es-blue-dark);
}

.sidebar-header .toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Estilos para o container de botões de categoria */
.category-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--es-light-blue);
    border-radius: 5px;
    margin: 0 15px 15px 15px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para os botões de categoria */
.category-button {
    background-color: var(--es-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.category-button:hover {
    background-color: var(--es-blue-dark);
    transform: translateY(-2px);
}

.category-button .count {
    background-color: white;
    color: var(--es-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    font-weight: bold;
    font-size: 11px;
}

.category-button.active {
    background-color: var(--es-pink);
}

.category-button.active .count {
    color: var(--es-pink);
}

.category-button.active:hover {
    background-color: var(--es-pink-dark);
}

/* Estilo para o quadro de filtros */
.filter-frame {
    border: 1px solid var(--es-light-blue);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    background-color: rgba(239, 246, 255, 0.5); /* Versão mais clara do --es-light-blue */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filter-frame:hover {
    border-color: var(--es-blue);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(239, 246, 255, 0.8);
}

.filter-frame h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--es-blue-dark);
    text-align: center;
    border-bottom: 1px solid var(--es-light-blue);
    padding-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.filter-frame .filter-section {
    margin-bottom: 10px; /* Espaçamento menor entre as seções dentro do quadro */
}

.filter-frame .filter-section:last-child {
    margin-bottom: 0; /* Remove a margem da última seção */
}

.filter-frame h3 i {
    margin-right: 5px;
    color: var(--es-blue);
}

/* Ajuste para os campos dentro do quadro de filtros */
.filter-frame input,
.filter-frame select {
    width: 100%;
    box-sizing: border-box;
}

/* Ajuste para os botões dentro do quadro de filtros */
.filter-frame .full-width-btn {
    margin-top: 5px;
}

/* Estilos para a aba à direita */
.right-sidebar {
    position: fixed;
    right: 0;
    left: auto;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: var(--es-white);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1080;
    font-size: 12px;
    transform: translateX(0);
    border-left: 1px solid var(--es-light-blue);
    border-right: none;
}

.right-sidebar.collapsed {
    transform: translateX(100%);
}

.right-sidebar .toggle-btn {
    position: absolute;
    left: 15px;
    right: auto;
    top: 15px;
    transform: none;
    color: white;
}

.right-sidebar .toggle-btn:hover {
    color: var(--es-light-pink);
}

.right-sidebar .sidebar-header {
    padding-left: 50px;
    background-color: var(--es-blue);
    color: white;
    border-bottom: 1px solid var(--es-blue-dark);
}

.right-sidebar .sidebar-header h2 {
    color: white;
}

/* Ajuste para o conteúdo principal quando a aba direita está aberta */
.main-content.right-expanded {
    margin-right: 300px;
    transition: margin-right 0.3s ease;
}

/* Ajuste para o conteúdo principal quando a aba direita está aberta e a sidebar esquerda está visível */
.main-content.right-expanded:not(.expanded) {
    margin-right: 300px;
    margin-left: 300px;
}

/* Ajuste para o conteúdo principal quando a aba direita está aberta e a sidebar esquerda está retraída */
.main-content.right-expanded.expanded {
    margin-right: 300px;
    margin-left: 0;
}

/* Ajuste para o cabeçalho quando a aba direita está aberta */
.main-content.right-expanded .header {
    right: 300px;
    transition: right 0.3s ease;
}

/* Ajuste para o cabeçalho quando a aba direita está aberta e a sidebar esquerda está visível */
.main-content.right-expanded:not(.expanded) .header {
    right: 300px;
    left: 300px;
}

/* Ajuste para o cabeçalho quando a aba direita está aberta e a sidebar esquerda está retraída */
.main-content.right-expanded.expanded .header {
    right: 300px;
    left: 0;
}

/* Estilos para a lista de eventos próximos */
.upcoming-event-day {
    margin-bottom: 15px;
    padding: 0 5px;
}

.upcoming-event-day-title {
    font-weight: bold;
    color: var(--es-blue-dark);
    padding: 5px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--es-light-blue);
    font-size: 13px;
}

.upcoming-event-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: var(--es-white);
    border-radius: 4px;
    border-left: 3px solid var(--es-blue);
    font-size: 11px;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.3;
}

.upcoming-event-item:hover {
    background-color: var(--es-light-blue);
    transform: translateX(3px);
    border-left-color: var(--es-pink);
}

/* Ajustes para dispositivos móveis */
@media (max-width: 1024px) {
    .right-sidebar {
        width: 250px;
    }
    
    .main-content.right-expanded {
        margin-right: 250px;
    }
    
    .main-content.right-expanded .header {
        right: 250px;
    }
}

@media (max-width: 768px) {
    .right-sidebar {
        width: 100%;
        z-index: 1080;
    }
    
    .main-content.right-expanded {
        margin-right: 0;
    }
    
    .main-content.right-expanded .header {
        right: 0;
    }
}

/* Botão para mostrar a aba direita */
.right-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Botão flutuante para abrir a barra lateral esquerda */
.floating-btn {
    position: absolute;
    bottom: 60px; /* Ajustado para ficar acima do rodapé fixo */
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--es-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

.floating-btn:hover {
    background-color: var(--es-blue-dark);
    transform: scale(1.1);
    animation: none; /* Para o pulso quando o mouse está sobre o botão */
}

.floating-btn i {
    font-size: 20px;
}

#upcomingEventsList {
    padding: 10px 5px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.right-sidebar .filter-frame {
    padding: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.right-sidebar .filter-frame:hover {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

/* Estilos básicos para o botão de toggle */
.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--es-white);
    padding: 5px;
}

.toggle-btn:hover {
    color: var(--es-light-pink);
}

/* Estilos básicos para o cabeçalho da barra lateral */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    position: relative;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
}

.hidden {
    display: none;
}

/* Ajuste nos botões de toggle para garantir consistência */
#showSidebar, #toggleSidebar {
    position: absolute;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Aumentado significativamente para ficar acima de tudo */
    transition: all 0.3s ease;
}

/* Botão para mostrar a barra lateral esquerda - Ajustado para corresponder ao .user-icon */
#showSidebar {
    left: 20px;
    top: 10px; /* Mesmo valor de top de .user-container */
    font-size: 16px;
    padding: 0;
    background-color: #3B82F6;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 40px; /* Mesmo valor que .user-icon */
    height: 40px; /* Mesmo valor que .user-icon */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#showSidebar:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Para garantir que os botões tenham o mesmo tamanho em dispositivos móveis */
@media (max-width: 768px) {
    .user-container {
        top: 6px;
        right: 15px;
    }
    
    .user-icon {
        width: 36px;
        height: 36px;
    }

    #showSidebar {
        width: 36px; 
        height: 36px;
        top: 6px; /* Mesmo valor que .user-container em mobile */
        left: 15px;
        font-size: 14px; /* Redução proporcional do tamanho da fonte */
    }
    
    #showSidebar:hover {
        transform: translateY(-2px);
    }
    
    #showSidebar, #toggleSidebar {
        display: flex !important;
    }
}

/* Estilos para o tooltip da sidebar */
.sidebar-tooltip-content {
    padding: 5px;
}

.sidebar-tooltip-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--es-white);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.sidebar-tooltip-content p {
    margin: 5px 0;
    font-size: 12px;
}

.tooltip-hint {
    margin-top: 10px !important;
    font-style: italic;
    font-size: 10px !important;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 5px;
}

/* Estilo para o cursor dos itens de evento na sidebar */
.upcoming-event-item {
    cursor: pointer;
}

/* Estilo para o tooltip da barra lateral */
.sidebar-tooltip {
    max-width: 280px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 2000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-tooltip-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    color: #3B82F6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.sidebar-tooltip-content p {
    margin: 5px 0;
}

/* Destaque para as informações importantes no tooltip */
.tooltip-highlight {
    background-color: rgba(59, 130, 246, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 8px 0;
    border-left: 3px solid #3B82F6;
}

.tooltip-hint {
    font-style: italic;
    font-size: 11px;
    margin-top: 10px;
    color: #aaa;
    text-align: center;
}

/* Estilos para o menu de administração */
.admin-menu {
    margin-top: 20px;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    background-color: rgba(241, 245, 249, 0.7);
}

.admin-menu h3 {
    color: #BE185D;
}

.admin-btn {
    background-color: #BE185D;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background-color: #9D174D;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-btn i {
    margin-right: 8px;
}

/* Estilos para a página de administração de fontes */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3B82F6;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-title i {
    color: #3B82F6;
    font-size: 1.5rem;
}

.admin-title h1 {
    margin: 0;
    color: #1E3A8A;
}

.back-button {
    padding: 8px 15px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1E40AF;
}

.sources-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sources-form h2 {
    margin-top: 0;
    color: #3B82F6;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4B5563;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-btn {
    background-color: #10B981;
    color: white;
}

.save-btn:hover {
    background-color: #059669;
}

.reset-btn {
    background-color: #6B7280;
    color: white;
}

.reset-btn:hover {
    background-color: #4B5563;
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sources-table th {
    background-color: #3B82F6;
    color: white;
    text-align: left;
    padding: 12px 15px;
}

.sources-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #E5E7EB;
}

.sources-table tr:last-child td {
    border-bottom: none;
}

.sources-table tr:nth-child(even) {
    background-color: #F9FAFB;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background-color: #F59E0B;
    color: white;
}

.edit-btn:hover {
    background-color: #D97706;
}

.delete-btn {
    background-color: #EF4444;
    color: white;
}

.delete-btn:hover {
    background-color: #DC2626;
}

/* Estilos para o campo checkbox no formulário de fontes */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    display: inline;
    margin: 0;
    font-weight: normal;
}

/* Estilos para o checkbox de status na tabela de fontes */
.status-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.source-name {
    vertical-align: middle;
}

.status-label {
    margin-left: 5px;
    font-size: 0.85em;
    font-style: italic;
}

/* Estilo para o botão de resetar registros */
.reset-records-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    background-color: #6366F1;
    color: white;
    transition: background-color 0.3s ease;
    margin: 0 4px;
}

.reset-records-btn:hover {
    background-color: #4F46E5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-records-btn i {
    margin-right: 4px;
}

/* Ajustes para os botões na tabela */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        margin-bottom: 4px;
    }
}

/* Estilos para a contagem de registros */
.records-count-cell {
    text-align: center;
}

.count-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.count-zero {
    background-color: #e5e5e5;
    color: #888;
}

.count-normal {
    background-color: #3B82F6;
    color: white;
}

.count-high {
    background-color: #10B981;
    color: white;
}

.count-loader {
    color: #888;
    font-size: 0.875rem;
}

.count-loader i {
    margin-right: 5px;
}

/* Estilos para os botões de ícone na tabela de fontes */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    margin: 0 4px;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn.edit-btn {
    background-color: #F59E0B;
}

.icon-btn.edit-btn:hover {
    background-color: #D97706;
}

.icon-btn.reset-records-btn {
    background-color: #6366F1;
}

.icon-btn.reset-records-btn:hover {
    background-color: #4F46E5;
}

.icon-btn.delete-btn {
    background-color: #EF4444;
}

.icon-btn.delete-btn:hover {
    background-color: #DC2626;
}

.action-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
}

/* Estilos para o sistema de login e ícone de usuário */
.user-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 9990; /* Aumentado para manter a hierarquia com o dropdown */
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3B82F6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative; /* Adicionado para criar um novo contexto de empilhamento */
}

.user-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #2563EB;
}

.user-icon i {
    font-size: 20px;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-icon .initials {
    font-size: 18px;
    font-weight: bold;
}

.user-dropdown {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999; /* Aumentado significativamente para garantir que fique acima de tudo */
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    background-color: #EBF5FF;
    border-bottom: 1px solid #E5E7EB;
}

.dropdown-header p {
    margin: 0;
    color: #1E40AF;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-header.logged-in {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-header.logged-in .mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.dropdown-options {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #4B5563;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #F3F4F6;
    color: #1E40AF;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #6B7280;
}

.dropdown-item:hover i {
    color: #3B82F6;
}

.dropdown-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.dropdown-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Estilos para o modal de login */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.login-modal.show .login-container {
    transform: translateY(0);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-header h2 {
    margin: 0;
    color: #1E40AF;
    font-size: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 22px;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #EF4444;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-control label {
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
}

.form-control input {
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-control input:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-button {
    margin-top: 10px;
    padding: 12px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #2563EB;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #9CA3AF;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #E5E7EB;
}

.login-divider::before {
    margin-right: 10px;
}

.login-divider::after {
    margin-left: 10px;
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-button {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-button:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.google-login {
    color: #EA4335;
}

.apple-login {
    color: #000000;
}

.login-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

.login-footer a {
    color: #3B82F6;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Ajustes para telas menores */
@media (max-width: 500px) {
    .user-container {
        top: 6px;
        right: 15px;
    }
    
    .user-icon {
        width: 36px;
        height: 36px;
    }
    
    .login-container {
        width: 90%;
        padding: 20px;
    }
}

.form-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.4;
}

.form-hint.show {
    display: block !important;
}

.form-hint.error {
    color: #EF4444;
}

.admin-hidden {
    display: none;
}

/* Estilo para o botão de reset de filtros */
.reset-filters-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    float: right;
}

.reset-filters-btn:hover {
    color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
    transform: rotate(-30deg);
}

.reset-filters-btn i {
    display: block;
}

/* Estilos para o dropdown de eventos próximos */
.events-dropdown {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 320px;
    max-height: 80vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.events-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.events-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #3B82F6;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.events-dropdown .dropdown-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-events-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.close-events-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.dropdown-content {
    padding: 0;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    scrollbar-width: thin;
    scrollbar-color: #CBD5E0 #F7FAFC;
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #F7FAFC;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: #CBD5E0;
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #A0AEC0;
}

.upcoming-event-day {
    margin: 10px 0;
    padding: 0 10px;
}

.upcoming-event-day-title {
    font-weight: 600;
    color: #4A5568;
    background-color: #EDF2F7;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.upcoming-event-item {
    background-color: white;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #2D3748;
    border: 1px solid #E2E8F0;
}

.upcoming-event-item:hover {
    background-color: #F7FAFC;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E0;
}

@media (max-width: 768px) {
    .events-dropdown {
        width: 90%;
        left: 5%;
        right: 5%;
    }
}

#toggleSidebar {
    right: 10px;
    top: 10px;
    font-size: 18px;
    color: #666;
}

#toggleSidebar:hover {
    color: #3B82F6;
}

/* Estilo para botão de eventos da semana */
.events-toggle-btn {
    position: fixed;
    right: 20px;
    top: 10px; /* Alinhado com o botão de usuário */
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990; /* Mesmo z-index do .user-container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.events-toggle-btn:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.events-toggle-btn i {
    font-size: 20px;
}

/* Ajuste responsivo para o botão de eventos */
@media (max-width: 768px) {
    .events-toggle-btn {
        top: 6px; /* Alinhado com os botões em mobile */
        right: 65px; /* Posicionado à esquerda do botão de usuário */
        width: 36px;
        height: 36px;
    }
    
    .events-toggle-btn i {
        font-size: 16px;
    }
}

/* Estilos para o sistema de favoritos */
.card {
    position: relative; /* Para posicionar a estrela de favorito */
}

.favorite-star {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.favorite-star:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.favorite-star i {
    font-size: 16px;
    color: #aaa;
    transition: color 0.2s ease;
}

.favorite-star:hover i {
    color: #f1c40f; /* Amarelo mais claro no hover */
}

.favorite-star.favorite i {
    color: #f1c40f; /* Amarelo para favoritos */
}

.favorite-star.processing {
    opacity: 0.7;
    pointer-events: none; /* Desabilita cliques durante o processamento */
}

/* Pulsação animada para o botão quando processando */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.favorite-star.processing {
    animation: pulse 1s infinite;
}

/* Estilos para o botão de meus favoritos */
.favorites-button {
    border: 2px solid #f1c40f !important;
    background-color: rgba(241, 196, 15, 0.1) !important;
    color: #f39c12 !important;
    font-weight: bold;
}

.favorites-button:hover, 
.favorites-button.active {
    background-color: #f1c40f !important;
    color: white !important;
}

.favorites-button i {
    color: #f1c40f;
    margin-right: 5px;
}

.favorites-button:hover i,
.favorites-button.active i {
    color: white;
}

.no-favorites {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para mensagens de erro em favoritos */
.favorites-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff5555;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
}

.favorites-error pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 3px;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    font-size: 12px;
    text-align: left;
}

/* Estilo para destacar o link do painel admin */
.dropdown-item.admin-link {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3B82F6;
    font-weight: 500;
}

.dropdown-item.admin-link:hover {
    background-color: rgba(59, 130, 246, 0.2);
} 