/* Importando uma fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis de Cores */
:root {
    --primary-color: #2c5e4c;
    --secondary-color: #4CAF50;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-color: #333;
    --light-gray-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset e Estilos Globais */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* --- CABEÇALHO --- */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { display: flex; align-items: center; text-decoration: none; color: var(--primary-color); }
.logo img { height: 40px; }
.logo span { color: var(--secondary-color); }

/* --- CONTEÚDO DA PÁGINA INICIAL --- */
#video-container { width: 100%; max-width: 1280px; margin: 1rem auto; aspect-ratio: 16 / 9; background-color: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px var(--shadow-color); }
#video-container iframe { width: 100%; height: 100%; border: none; }
.action-buttons { display: flex; justify-content: center; gap: 1rem; padding: 1rem; }
.action-buttons .btn { background-color: var(--primary-color); color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.3s; }
.action-buttons .btn:hover { background-color: #1a3d32; }

/* --- CARROSSEL DE BANNERS (ATUALIZADO) --- */
.banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 2rem auto;
}
.banner-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.banner-item img {
    width: 100%;
    aspect-ratio: 1280 / 720;
    object-fit: cover;
    display: block;
}
.slick-dots li button:before { font-size: 12px; color: var(--primary-color); }
.slick-dots li.slick-active button:before { color: var(--secondary-color); }


/* --- NAVEGAÇÃO INFERIOR (ESTILO APP - ADMIN) --- */
.bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: var(--surface-color); box-shadow: 0 -2px 10px var(--shadow-color); justify-content: space-around; align-items: flex-start; z-index: 1000; padding-top: 8px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #999; flex-grow: 1; border: none; background: none; cursor: pointer; font-family: 'Poppins', sans-serif; }
.nav-item i { font-size: 1.6rem; }
.nav-item span { font-size: 0.7rem; font-weight: 500; margin-top: 4px; }
.nav-item.active { color: var(--secondary-color); }

@media (min-width: 768px) {
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
    .nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
    .nav-links a { text-decoration: none; color: var(--primary-color); font-weight: 600; padding: 5px 10px; border-radius: 5px; transition: background-color 0.3s ease, color 0.3s ease; }
    .nav-links a:hover, .nav-links a.active { background-color: var(--secondary-color); color: white; }
    h1.form-title, h1.list-title { display: block; }
    .page-title { display: none; }
}

/* --- ESTILOS GERAIS DE ADMIN --- */
.container { padding: 1rem; }
h1.form-title, h1.list-title { color: var(--primary-color); text-align: center; margin-bottom: 2rem; }
.form-container, .list-container { background-color: var(--surface-color); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px var(--shadow-color); }
form { display: flex; flex-wrap: wrap; gap: 20px; }
.form-group { display: flex; flex-direction: column; flex: 1 1 calc(50% - 10px); min-width: 200px; }
.form-group.full-width { flex-basis: 100%; }
.form-group label { margin-bottom: 5px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--light-gray-color); border-radius: 5px; font-size: 1rem; font-family: 'Poppins', sans-serif; }
textarea { min-height: 120px; resize: vertical; }
.btn-submit { background-color: var(--secondary-color); color: white; padding: 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1rem; font-weight: 600; width: 100%; margin-top: 1rem; transition: background-color 0.3s ease, transform 0.2s ease; }
.btn-submit:hover { background-color: #45a049; transform: translateY(-2px); }
.btn-submit:disabled { background-color: #ccc; cursor: not-allowed; }
.hidden { display: none !important; }

/* --- ESTILOS DE LISTAS ADMIN --- */
.search-container { margin-bottom: 1rem; }
#search-input { width: 100%; padding: 12px; border-radius: 5px; border: 1px solid var(--light-gray-color); }
.data-list { list-style: none; padding: 0; }
.data-list li { background-color: #f9f9f9; border-left: 5px solid var(--secondary-color); padding: 1rem; margin-bottom: 1rem; border-radius: 0 5px 5px 0; box-shadow: 0 2px 5px var(--shadow-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.item-info { flex-grow: 1; }
.item-info strong { font-size: 1.2rem; color: var(--primary-color); }
.item-actions { display: flex; gap: 10px; margin-left: 1rem; }
.action-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 5px; transition: color 0.3s, transform 0.2s; }
.action-btn:hover { transform: scale(1.1); }
.action-btn.edit { color: var(--info-color); }
.action-btn.edit:hover { color: #2980b9; }
.action-btn.delete { color: var(--danger-color); }
.action-btn.delete:hover { color: #c0392b; }

/* GERENCIADOR DE BANNERS */
#banner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.banner-card { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px var(--shadow-color); aspect-ratio: 16 / 9; }
.banner-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-card .item-actions { position: absolute; top: 8px; right: 8px; background-color: rgba(255, 255, 255, 0.7); padding: 5px; border-radius: 5px; }

/* ESTILOS DO MODAL (POP-UP) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--surface-color); padding: 2rem; border-radius: 8px; width: 90%; max-width: 500px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.modal-content h2 { margin-top: 0; margin-bottom: 1.5rem; color: var(--primary-color); }
.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }
.btn-cancel { background-color: var(--light-gray-color); color: var(--text-color); }


/* --- SEÇÃO DE BUSCA DE PROFISSIONAIS --- */
.professionals-section {
    background-color: var(--surface-color);
    padding: 2rem 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.search-filters input, .search-filters select {
    padding: 12px;
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    flex: 1 1 250px; /* Faz os campos se adaptarem */
}

/* --- GRID DE PROFISSIONAIS --- */
#professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.professional-card {
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.professional-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin-bottom: 1rem;
}
.professional-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.professional-card .council-number {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}
.professional-card .specialty {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* --- MODAL (POP-UP) DE DETALHES DO PROFISSIONAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}
.modal-header {
    text-align: center;
    border-bottom: 1px solid var(--light-gray-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.modal-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}
.modal-header h2 {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}
.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.modal-body strong {
    color: var(--primary-color);
    margin-right: 5px;
}
.modal-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray-color);
}
.modal-contact a {
    color: var(--secondary-color);
    font-size: 2rem;
    transition: transform 0.2s;
}
.modal-contact a:hover {
    transform: scale(1.1);
}

.professionals-section {
    background-color: var(--surface-color);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.search-filters input, .search-filters select {
    padding: 12px;
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    flex: 1 1 250px;
}

/* --- GRID DE PROFISSIONAIS (Página Inicial) --- */
#professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.professional-card {
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.professional-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin-bottom: 1rem;
}
.professional-card h3 { color: var(--primary-color); font-size: 1.3rem; margin-bottom: 0.5rem; }
.professional-card .council-number { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }
.professional-card .specialty { font-size: 1rem; color: var(--text-color); font-weight: 500; }

/* --- MODAL (POP-UP) DE DETALHES DO PROFISSIONAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--surface-color); padding: 2rem; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #888; }
.modal-header { text-align: center; border-bottom: 1px solid var(--light-gray-color); padding-bottom: 1rem; margin-bottom: 1rem; }
.modal-header img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-color); }
.modal-header h2 { margin-top: 1rem; margin-bottom: 0.25rem; color: var(--primary-color); }
.modal-body p { margin-bottom: 1rem; line-height: 1.8; }
.modal-body strong { color: var(--primary-color); margin-right: 5px; }
.modal-body h4 { color: var(--primary-color); margin-top: 1.5rem; border-top: 1px solid var(--light-gray-color); padding-top: 1rem; }
.modal-body ul { list-style: none; padding-left: 0; }
.modal-body ul li a { text-decoration: none; color: var(--secondary-color); font-weight: 500; }
.modal-contact { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--light-gray-color); }
.modal-contact a { color: var(--secondary-color); font-size: 2rem; transition: transform 0.2s; }
.modal-contact a:hover { transform: scale(1.1); }

/* CORREÇÃO DE RESPONSIVIDADE PARA MENU ADMIN */
@media (max-width: 767px) {
    .header .nav-links {
        display: none !important;
    }
}

.select2-container .select2-selection--multiple {
    height: auto !important;
    min-height: 48px;
    padding-bottom: 5px !important;
    cursor: text;
    display: flex;
}

/* Organiza os itens selecionados (tags) */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 8px !important;
    margin-right: 5px;
}

/* Estilos para a lista de podcasts no modal */
.podcast-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.podcast-list li {
    margin-bottom: 0.5rem;
}

.podcast-list li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.podcast-list li a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.podcast-list li a .fa-youtube {
    color: #FF0000;
    margin-right: 8px;
}
.modal-header .modal-contact {
    border: none; /* Remove a borda superior que existia antes */
    padding-top: 0;
    margin-top: 1rem; /* Espaçamento abaixo do número do conselho */
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.modal-header .modal-contact a {
    font-size: 1.8rem; /* Tamanho dos ícones */
    color: var(--secondary-color);
}

/* Em /style.css */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* ANTES: background-color: rgba(44, 94, 76, 0.95); */
    background-color: var(--primary-color); /* AGORA: Cor sólida */
    color: white;
    padding: 18px 25px; /* Um pouco mais de padding */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none; /* Começa escondido */
    /* ANTES: font-size: 0.9rem; */
    font-size: 0.95rem; /* Opcional: Fonte ligeiramente maior */
    /* REMOVIDO: backdrop-filter e -webkit-backdrop-filter */
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* ANTES: max-width: 900px; */
    max-width: 1100px; /* AGORA: Um pouco mais largo */
    margin: 0 auto;
}

.cookie-banner p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-banner a {
    /* ANTES: color: #a7f3d0; */
    color: #ffffff; /* AGORA: Branco para melhor contraste */
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner a:hover {
    /* ANTES: color: #ffffff; */
    color: #e0e0e0; /* Cinza claro no hover */
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap; /* Para quebrar em telas menores */
    justify-content: center;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.9rem;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background-color: var(--secondary-color); /* Verde secundário */
    color: white;
}
.cookie-btn-accept:hover {
    background-color: #45a049;
}

.cookie-btn-reject {
    background-color: #e0e0e0; /* Cinza claro */
    color: #333;
}
.cookie-btn-reject:hover {
    background-color: #cccccc;
}

/* Responsividade do banner */
@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cookie-banner p {
        margin-bottom: 0;
        margin-right: 20px; /* Espaço entre texto e botões */
    }
    .cookie-banner-actions {
        flex-shrink: 0; /* Impede que os botões encolham */
        flex-wrap: nowrap;
    }
}

/* Tooltip para explicações */
.cookie-banner span[title] {
    text-decoration: underline dotted;
    cursor: help;
}