:root {
    --bi-pink: #D60270;
    --bi-purple: #9B4F96;
    --bi-blue: #0038A8;
    --text-light: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, var(--bi-blue), var(--bi-purple), var(--bi-pink));
    color: var(--text-light);
    min-height: 100vh;
    padding-top: 80px;
}

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

header {
    background: rgba(0, 56, 168, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: #FF9EDD;
}

main {
    padding: 20px 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--bi-purple);
}

/* CORREÇÃO PRINCIPAL - MAPA */
#map {
    height: 60vh !important;
    width: 100% !important;
    min-height: 400px;
    border-radius: 10px;
    margin: 20px 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.leaflet-container {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--text-dark) !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content button {
    background: linear-gradient(to right, var(--bi-blue), var(--bi-purple));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}

.leaflet-popup-content button:hover {
    background: linear-gradient(to right, var(--bi-purple), var(--bi-pink));
}

.map-instructions {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.mensagem-flash {
    padding: 12px;
    margin: 15px auto;
    max-width: 800px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.mensagem-sucesso {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.mensagem-erro {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #4ecca3;
}

.nav-link i {
    margin-right: 8px;
}
.nav-link.active {
    color: #4ecca3;
    font-weight: bold;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.menu-toggle + label {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    z-index: 1001;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-button {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle-button {
        display: block;
        z-index: 1002;
    }
    
    .menu-toggle + label {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 56, 168, 0.95);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 0 0 15px 0;
    }

    .overlay.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    #map {
        height: 50vh !important;
        min-height: 300px;
    }
}

/* BOTÕES */
.botoes-mapa {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.botao-grupos, .botao-pessoas {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.botao-grupos {
    background-color: var(--bi-blue);
}

.botao-pessoas {
    background-color: var(--bi-pink);
}

@media (max-width: 768px) {
    .botoes-mapa {
        gap: 10px;
    }
    
    .botao-grupos, .botao-pessoas {
        padding: 10px 0;
        font-size: 14px;
    }
}
/* BOTÕES COM SUAS CORES PERSONALIZADAS */
.botao-grupos {
    background-color: #cc5bc6; /* Sua cor roxa */
}

.botao-pessoas {
    background-color: #cc5bc6; /* Sua cor roxa */
}

.botao-grupos:hover {
    background-color: #c253bc; /* Seu hover */
}

.botao-pessoas:hover {
    background-color: #c253bc; /* Seu hover */
}

/* Formulário de busca */
.search-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.3);
}

.btn {
    background: #cc5bc6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #3cb391;
    transform: translateY(-2px);
}

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

/* Lista de grupos */
.grupos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.grupo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.grupo-card:hover {
    transform: translateY(-5px);
}

.grupo-header {
    background: #894ecc;
    color: #fff;
    padding: 15px;
}

.grupo-title {
    margin: 0;
    font-size: 1.3rem;
}

.grupo-body {
    padding: 15px;
    color: #333;
}

.grupo-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.grupo-meta i {
    margin-right: 8px;
    color: #4ecca3;
}

.grupo-desc {
    margin-bottom: 15px;
    line-height: 1.5;
}

.grupo-link {
    display: inline-block;
    color: #4ecca3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.grupo-link:hover {
    color: #3cb391;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 30px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-link.active {
    background: #4ecca3;
    color: #fff;
}

/* Mensagem de nenhum resultado */
.no-results {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 18px;
}
/* Estilos para a página de login */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-form {
    margin-top: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #894ecc;
    box-shadow: 0 0 0 3px rgba(137, 78, 204, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 20px 0;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    color: #333;
}

.login-links a {
    color: #894ecc;
    text-decoration: none;
    font-weight: 500;
}

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

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.form-text a {
    color: #894ecc;
    text-decoration: none;
}

.form-text a:hover {
    text-decoration: underline;
}

/* Estilo dos Apoiadores */
.apoiadores {
    background: #9B4F96;
    text-align: center;
    padding: 3rem 1rem;
}

.apoiadores-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.apoiador-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.apoiador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.apoiador-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.apoiador-card span {
    font-weight: 600;
    font-size: 0.9rem;
}
/* Rodapé */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

footer a {
    color: #88d3ce;
    text-decoration: none;
}

.dashboard-container {
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #333;
    max-width: 95%;
    width: 1200px;
}

/* Abas de navegação */
.abas-navegacao {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

.aba-link {
    padding: 12px 25px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.aba-link:hover {
    background: #e0e0e0;
    color: var(--bi-purple);
    transform: translateY(-2px);
}

.aba-link.ativa {
    background: white;
    color: var(--bi-purple);
    box-shadow: 0 0 0 2px var(--bi-purple);
    position: relative;
}

.aba-link.ativa::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bi-purple);
    border-radius: 2px;
}

/* Conteúdo das abas */
.aba-conteudo {
    padding: 20px;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    display: none;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.03);
}

.aba-conteudo.ativa {
    display: block;
    color: white;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid var(--bi-purple);
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--bi-purple);
}

/* Lista de grupos */

.grupo-item {
    background: #fafafab7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.grupo-item:hover {
    background: #fafafa9f;
}

.grupo-item:last-child {
    border-bottom: none;
}

.grupo-info h4 {
    color: var(--bi-purple);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.grupo-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
}

.grupo-meta i {
    color: var(--bi-blue);
}

.grupo-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-edit {
    background: var(--bi-blue);
    color: white;
}

.btn-edit:hover {
    background: #002d8a;
    transform: translateY(-2px);
}

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

.btn-delete:hover {
    background: #bb2d3b;
    transform: translateY(-2px);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination a, .pagination span {
    padding: 8px 15px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination a:hover {
    background: var(--bi-purple);
    color: white;
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--bi-blue);
    color: white;
}

/* Botão adicionar grupo */
.add-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: var(--bi-pink);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(214, 2, 112, 0.3);
}

.add-group-btn:hover {
    background: #b80262;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 2, 112, 0.4);
}

/* Container de regras */
.regras-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    color:#333;
    border: 1px solid #eee;
}

.regras-conteudo {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.regras-conteudo h3 {
    color: var(--bi-purple);
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ddd;
}

.regras-conteudo ol {
    padding-left: 20px;
    margin: 15px 0;
}

.regras-conteudo li {
    margin-bottom: 10px;
}

/* Formulário de perfil */
.perfil-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.perfil-foto {
    width: 300px;
    flex-shrink: 0;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.foto-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bi-purple);
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.perfil-form {
    flex-grow: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--bi-purple);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--bi-purple);
    box-shadow: 0 0 0 3px rgba(155, 79, 150, 0.2);
    outline: none;
    background: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.instagram-input {
    display: flex;
    align-items: center;
}

.instagram-input span {
    background: #f5f5f5;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #666;
    font-weight: 500;
}

.instagram-input input {
    border-radius: 0 8px 8px 0 !important;
}

.localizacao-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid var(--bi-blue);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.localizacao-info h3 {
    color: var(--bi-purple);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.localizacao-info p {
    margin: 8px 0;
    color: #555;
}

.localizacao-info strong {
    color: #333;
}

/* Responsividade */
@media (max-width: 992px) {
    .perfil-container {
        flex-direction: column;
    }
    
    .perfil-foto {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .abas-navegacao {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .aba-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .grupo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .grupo-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .perfil-form, .regras-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .regras-conteudo {
        padding: 15px;
    }
}