/* --- VARIÁVEIS GLOBAIS --- */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #9333ea;
            --brand-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            --surface-color: #ffffff;
            --bg-color: #f8fafc;
            --text-main: #1e293b;
            --text-muted: #475569;
            --tech-gradient: var(--brand-gradient);
            --card-radius: 24px;
            --btn-radius: 50px;
        }

        body {
            background-color: var(--bg-color);
            font-family: 'Inter', sans-serif;
            color: var(--text-main);
            -webkit-font-smoothing: antialiased;
        }

        /* --- UTILITÁRIOS --- */
        .text-gradient-tech {
            background: var(--tech-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
        }
        
        .section-title {
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 1.5rem;
            color: #0f172a;
        }

        /* --- NAVBAR (ESTILO GLASS) --- */
        .navbar-glass {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.5);
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            padding: 1rem 0;
        }

        .search-pill {
            background: #f1f5f9;
            border-radius: var(--btn-radius);
            padding: 5px 5px 5px 20px;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }
        
        .search-pill:focus-within {
            background: white;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }

        .search-input-nav {
            border: none;
            background: transparent;
            outline: none;
            width: 100%;
            font-size: 0.95rem;
        }

        .btn-search-nav {
            border-radius: var(--btn-radius);
            background: var(--brand-gradient);
            color: white;
            border: none;
            padding: 8px 24px;
            font-weight: 600;
            transition: transform 0.2s;
        }
        
        .btn-search-nav:hover {
            transform: scale(1.05);
            color: white;
        }

        /* --- CARROUSEL (ESTILO CARD) --- */
        .carousel-container {
            border-radius: var(--card-radius);
            overflow: hidden;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
            margin-bottom: 3rem;
        }

        /* --- CARDS PRINCIPAIS (EMPRESAS) --- */
        .card-clean-tech {
            background-color: var(--surface-color);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: var(--card-radius);
            overflow: hidden;
            position: relative;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .card-clean-tech:hover {
            transform: translateY(-10px) scale(1.01);
            box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.2);
            border-color: rgba(79, 70, 229, 0.2);
        }

        .card-img-wrapper {
            height: 220px;
            position: relative;
            overflow: hidden;
        }

        .card-tech-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .card-clean-tech:hover .card-tech-img { transform: scale(1.1); }

        .badge-glass {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            color: var(--primary-color);
            font-weight: 700;
            font-size: 0.8rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.5);
        }

        .rating-pill { background-color: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
        .text-muted-tech { color: var(--text-muted); font-size: 0.95rem; }
        .icon-tech { 
            background: var(--tech-gradient); 
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent; 
        }

        .btn-tech {
            background: var(--tech-gradient);
            border: none;
            color: white;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
        }
        .btn-tech:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
            color: white;
        }

        /* --- CARDS DE EVENTOS (SIDEBAR) --- */
        .card-event {
            background: white;
            border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.05);
            overflow: hidden;
            transition: all 0.3s ease;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.02);
            position: relative;
            overflow: hidden;
        }

        .card-event:hover {
            transform: translateX(5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            border-color: rgba(147, 51, 234, 0.2);
        }



        .event-img-wrapper {
            height: 140px;
            position: relative;
        }
        
        .event-date-badge {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(4px);
            color: white;
            border-radius: 12px;
            padding: 4px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .card-event .card-body { padding: 1.25rem; }
        .card-event h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
        
        .btn-link-tech {
            text-decoration: none;
            color: var(--primary-color);
            font-weight: 600;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: gap 0.2s;
        }
        .btn-link-tech:hover { gap: 8px; }

        /* --- FOOTER (DARK PREMIUM) --- */
        footer {
            background: linear-gradient(to right, #0f172a, #1e1b4b);
            color: #cbd5e1;
            padding: 60px 0;
            margin-top: 4rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }
        footer strong { color: white; letter-spacing: 0.5px; }

        /*--- METEOROLOGIA ---*/

        /* --- WIDGET DE CLIMA (GLASS) --- */
.weather-widget {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5); /* Fundo sutil */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px; /* Formato Pílula */
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-right: 15px; /* Espaço do botão entrar */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.weather-widget:hover, .weather-widget.show {
    background: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    color: var(--primary-color);
}

/* Ícones animados ou coloridos */
.weather-icon-main { font-size: 1.2rem; }
.icon-sun { color: #f59e0b; } /* Laranja Sol */
.icon-cloud { color: #64748b; } /* Cinza Nuvem */
.icon-rain { color: #3b82f6; } /* Azul Chuva */

/* --- DROPDOWN PREVISÃO 5 DIAS --- */
.weather-dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    padding: 15px;
    min-width: 250px;
    border-top: 4px solid var(--primary-color);
    margin-top: 10px !important;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
}
.forecast-item:last-child { border-bottom: none; }
.forecast-day { font-weight: 600; color: var(--text-muted); }
.forecast-temp { font-weight: 700; color: var(--text-main); }

/* --- WIDGETS DE NAVEGAÇÃO (Localização e Clima) --- */
.nav-glass-widget {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5); /* Fundo vidro sutil */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    /*color: var(--text-main);*/
    white-space: nowrap; /* Não quebrar linha */
}

.nav-glass-widget:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    color: var(--primary-color);
}

/* Ajuste específico para o texto da municipio */
.location-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ícone de Pin animado no hover */
.nav-glass-widget:hover .bi-geo-alt-fill {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* --- ESTILO DO MODAL --- */
.modal-glass .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-glass .modal-header { border-bottom: none; padding-bottom: 0; }
.modal-glass .modal-footer { border-top: none; }

/* --- CALENDÁRIO WIDGET (GLASS STYLE) --- */
#calendar-wrapper {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Removemos a "cara de tabela" padrão */
.fc { font-family: 'Inter', sans-serif; }
.fc-theme-standard .fc-scrollgrid, 
.fc-theme-standard td, 
.fc-theme-standard th { border: none !important; }

/* Cabeçalho (Mês e Botões) */
.fc .fc-toolbar-title { font-size: 1.1rem !important; font-weight: 800; color: var(--text-main); }
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 1em !important; }
.fc .fc-button {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    padding: 4px !important;
}
.fc .fc-button:hover { color: var(--primary-color) !important; transform: scale(1.2); }
.fc .fc-button:focus { box-shadow: none !important; }

/* Dias da Semana (S, T, Q...) */
.fc-col-header-cell-cushion {
    text-decoration: none !important;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Células dos Dias */
.fc-daygrid-day-number {
    text-decoration: none !important;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 2px auto;
    transition: all 0.2s;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
    background-color: #f1f5f9;
    color: var(--primary-color);
    cursor: pointer;
}

/* O Dia de HOJE (Destaque Gradiente) */
.fc-day-today .fc-daygrid-day-number {
    background: var(--brand-gradient) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.fc-day-today { background: transparent !important; } /* Remove fundo amarelo padrão */

/* Eventos (Bolinhas indicadores em vez de barras) */


/* Criamos um indicador customizado via CSS no dia que tem evento */
.has-event .fc-daygrid-day-frame::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.desc-limitada {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Define que o texto terá no máximo 3 linhas */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis; /* Aqui a mágica acontece: o ... aparece no final da 3ª linha */
    line-height: 1.6; /* Mantém o espaçamento que você já estava usando */
    max-height: 4.8em; /* (1.6 de line-height * 3 linhas) - ajuda a manter a altura fixa */
}

.titulo-empresa {
    display: -webkit-box;
    -webkit-line-clamp: 3;    /* Limita a no máximo 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Ajuste de altura para alinhar tudo */
    line-height: 1.2;         /* Espaçamento entre linhas do título */
    min-height: 3.6em;        /* 1.2 (line-height) * 3 (linhas) = 3.6em */
    margin-bottom: 5px;
}

/* Ajuste opcional: se o nome for muito grande, diminua um pouco a fonte */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-menu-custom {
    display: inline-flex !important;
    flex-direction: column; /* Empilha ícone e texto */
    align-items: center;
    justify-content: center;
    
    /* Ajuste de formato ovalado */
    padding: 8px 25px !important; /* Mais padding nas laterais que no topo/base */
    border-radius: 20px !important; /* Menos redondo que 50%, mantém o 'pill' */
    
    line-height: 1;
    min-width: 90px; /* Garante que ele não fique estreito demais */
    border-width: 2px !important;
}

.btn-menu-custom i {
    font-size: 1.5rem; /* Aumenta o ícone como na home */
    margin-bottom: 2px;
}

.btn-menu-custom span {
    font-size: 0.85rem;
    font-weight: 700;
}


.btn-header-perfil {
    /* Força o empilhamento vertical independente do espaço */
    display: flex !important;
    flex-direction: column !important; 
    align-items: center;
    justify-content: center;

    /* Ajuste do formato (Ovalado, não redondo) */
    padding: 5px 20px !important; 
    border-radius: 30px !important; /* Curvatura suave nas pontas */
    border-width: 2px !important;
    
    /* Garante que o botão tenha uma largura mínima para não achatar */
    min-width: 85px;
    text-decoration: none;
}

.btn-header-perfil i {
    font-size: 1.4rem; /* Tamanho do ícone como na Home */
    line-height: 1;
    margin-bottom: 2px; /* Espaço entre ícone e texto */
}

.btn-header-perfil span {
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    display: block; /* Garante que o span ocupe a linha de baixo */
}

.claim-pill {
    background-color: #fef2f2; /* mesmo estilo do rating, mas vermelho suave */
    color: #b91c1c;
    border: 1px solid #fee2e2;

    border-radius: 14px;
    padding: 4px 6px;

    backdrop-filter: blur(6px);

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    font-size: 0.55rem;

    line-height: 1.5;

    width: fit-content;
}

.btn-claim {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: 5px;

    font-weight: 600;
    font-size: 0.65rem;

    padding: 2px 8px;
    margin-top: 3px;

    transition: all 0.25s ease;

    line-height: 1.5;
    white-space: nowrap;
}

.btn-claim:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(147, 51, 234, 0.25);
    color: #fff;
}
.info-publica-container {
    min-height: 32px; /* 🔥 garante alinhamento entre cards */
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-publica {
    font-size: 0.7rem;
    line-height: 1.3;
    opacity: 0.85;
    text-align: center;
}

.link-contestacao {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-contestacao:hover {
    text-decoration: underline;
}

.text-primary {
    color: #3b3bf0 !important;
}

.location-text.text-primary {
    color: #0f172a !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(79, 70, 229, 0.15) !important;
    color: #1e1b4b !important;
}

.btn-outline-primary {
    color: #1e40af;
    border-color: #1e40af;
}

.btn-outline-primary:hover {
    background: #1e40af;
    color: #fff;
}

.titulo-evento{
    font-size: 1.2rem;
}

/*Do index*/ 

        /* Modal eventos estilo premium */
.modal-glass .modal-content {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Card de cada evento dentro do modal */
.event-item {
    border-radius: 16px;
    padding: 15px;
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Hora do evento */
.event-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
}

.pagina-btn {
    border: none;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;

    background: rgba(0,0,0,0.05);
    color: #555;

    transition: all 0.25s ease;
}

/* Hover */
.pagina-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.25);
}

/* Ativo (página atual) */
.pagina-btn.active {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.35);
}

/* Clique efeito */
.pagina-btn:active {
    transform: scale(0.95);
}

.weather-icon-main i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.forecast-item i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}

.btn-agenda-completa{
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 16px;

    font-weight: 600;
    font-size: 0.85rem;

    box-shadow: 0 8px 20px rgba(79,70,229,0.25);
    transition: .25s;
}

.btn-agenda-completa:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(147,51,234,0.35);
    color:#fff;
}

.eventos-dia{
    font-size: 1.2rem;
}

.titulo-no-modal{
    font-size: 1.2rem;
}