/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.logo h1 {
    color: #1a6fc9;
    font-size: 28px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.busca input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.busca button {
    padding: 8px 15px;
    background-color: #1a6fc9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Menu */
.menu-principal {
    background-color: #1a6fc9;
}

.menu-principal ul {
    display: flex;
    list-style: none;
}

.menu-principal li {
    position: relative;
}

.menu-principal a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu-principal a:hover {
    background-color: #135aa0;
}

.menu-principal .login {
    margin-left: auto;
}

/* Conteúdo principal */
.conteudo {
    padding: 30px 0;
}

.destaque {
    margin-bottom: 40px;
}

.destaque h2 {
    margin-bottom: 20px;
    color: #1a6fc9;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: #1a6fc9;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card ul, .card ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.botao {
    display: inline-block;
    padding: 8px 15px;
    background-color: #1a6fc9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.botao:hover {
    background-color: #135aa0;
}

/* Rodapé */
.rodape {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.rodape-coluna {
    margin-bottom: 20px;
}

.rodape h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.rodape a {
    color: #ddd;
    text-decoration: none;
}

.rodape a:hover {
    color: white;
}

.rodape ul {
    list-style: none;
}

.rodape ul li {
    margin-bottom: 8px;
}

.redes-sociais {
    display: flex;
    gap: 10px;
}

.redes-sociais img {
    width: 32px;
    height: 32px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .cabecalho {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .menu-principal ul {
        flex-direction: column;
    }
    
    .menu-principal .login {
        margin-left: 0;
    }
}

/* Estilos para capturas.php */
.filtros {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.filtros select, .filtros input[type="submit"] {
    padding: 8px 12px;
    margin-right: 10px;
}

.lista-capturas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.captura {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.captura-cabecalho {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.captura-detalhes p {
    margin: 5px 0;
}

.captura-foto img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}

/* Estilos para desafios.php */
.abas {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.aba {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
}

.aba.ativa {
    background: #1a6fc9;
    color: white;
}

.aba-conteudo {
    background: white;
    padding: 20px;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.desafio {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.desafio:last-child {
    border-bottom: none;
}

.aviso {
    color: #e67e22;
    font-style: italic;
}

/* Estilos para top_pescadores.php */
.filtros-ranking {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.tabela-ranking {
    overflow-x: auto;
}

.tabela-ranking table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-ranking th, .tabela-ranking td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabela-ranking th {
    background-color: #1a6fc9;
    color: white;
}

.tabela-ranking tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabela-ranking tr:hover {
    background-color: #f1f1f1;
}

.legenda-ranking {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.legenda-ranking ul {
    margin: 10px 0 10px 20px;
}

/* Estilos para locais.php */
.mapa-filtros {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.filtros {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.filtro-grupo {
    margin-bottom: 15px;
}

.filtro-grupo label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filtro-grupo select, .filtro-grupo input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mapa-container {
    background: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.lista-locais {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.local {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.local-info p {
    margin: 5px 0;
}

.avaliacao {
    color: #f39c12;
    margin: 10px 0;
}

.local-acoes {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.local-acoes .botao {
    flex: 1;
    text-align: center;
    padding: 8px;
}

/* Estilos para previsao.php */
.selecionar-local {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.resultado-previsao {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.previsao-dias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dia-previsao {
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.dia-previsao.ótima {
    border-left: 5px solid #2ecc71;
}

.dia-previsao.boa {
    border-left: 5px solid #3498db;
}

.dia-previsao.regular {
    border-left: 5px solid #f39c12;
}

.dia-previsao.ruim {
    border-left: 5px solid #e74c3c;
}

.info-tempo p {
    margin: 5px 0;
}

.indice-pesca {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.indice {
    font-weight: bold;
}

.indice.ótima {
    color: #2ecc71;
}

.indice.boa {
    color: #3498db;
}

.indice.regular {
    color: #f39c12;
}

.indice.ruim {
    color: #e74c3c;
}

.dica {
    font-style: italic;
    margin-top: 10px;
}

.dicas-pesca {
    background: #eaf7ff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.dicas-pesca ul {
    margin: 10px 0 0 20px;
}

/* Estilos para mares.php */
.tabua-mares .selecionar-local {
    margin-bottom: 30px;
}

.resultado-mares {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.data-selecionada {
    font-size: 1.1em;
    color: #3498db;
    margin-bottom: 20px;
}

.tabela-mares {
    margin: 20px 0;
    overflow-x: auto;
}

.tabela-mares table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-mares th, .tabela-mares td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabela-mares th {
    background-color: #1a6fc9;
    color: white;
}

.fase-lua {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.calendario-lunar {
    margin-top: 15px;
}

.calendario-lunar ul {
    margin: 10px 0 0 20px;
}

.dicas-pesca {
    background: #eaf7ff;
    padding: 15px;
    border-radius: 5px;
}

.dicas-pesca ul {
    margin: 10px 0 0 20px;
}

.aviso {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}