* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}
.report-container {
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1280px;
}
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}
.info-item {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}
.info-item i {
    font-size: 20px;
    margin-right: 10px;
    font-style: normal;
}
.divider {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}
.section {
    margin-bottom: 30px;
}
.section-header {
    background: #f0f0f0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: #333;
}
.section-title {
    font-size: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.info-list {
    margin-left: 40px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table, th, td {
    border: 1px solid #ddd;
}
th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
}
td {
    padding: 10px;
    vertical-align: top;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
.footer {
    font-size: 12px;
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.weather-info {
    display: flex;
    align-items: flex-start;
}
.weather-icon {
    margin-right: 10px;
    width: 50px;
    height: 50px;
}
.weather-details {
    flex: 1;
}
.weather-description {
    font-weight: bold;
    margin-bottom: 5px;
}
.weather-data {
    font-size: 0.9em;
    color: #555;
}

/* Estilos específicos para a seção de histórico de precipitação */
.clima-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    border-top: 4px solid #3498db;
}

/* Estilos melhorados para Informações Iniciais */
.info-inicial {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 6px solid #ff9800;
    box-shadow: 0 4px 20px rgba(255,152,0,0.1);
}

.info-inicial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.info-inicial .info-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-inicial .info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-inicial .info-item i {
    font-size: 26px;
    min-width: 35px;
    text-align: center;
    padding: 10px;
    border-radius: 50%;
    margin: 0;
    font-style: normal;
}

.info-inicial .info-item:nth-child(1) i { 
    background: linear-gradient(135deg, #e8f5e8 0%, #a5d6a7 100%); 
    color: #2e7d32; 
}
.info-inicial .info-item:nth-child(2) i { 
    background: linear-gradient(135deg, #e3f2fd 0%, #81d4fa 100%); 
    color: #0277bd; 
}

.info-inicial .info-content {
    flex: 1;
    line-height: 1.6;
}

.info-inicial .info-content strong {
    display: block;
    color: #e65100;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-inicial .info-content span {
    color: #37474f;
    font-size: 15px;
    font-weight: 500;
}

/* Estilos melhorados para Resumo do Histórico */
.resumo-historico {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 6px solid #007bff;
    box-shadow: 0 4px 20px rgba(0,123,255,0.1);
}

.resumo-historico .info-list {
    margin-left: 0;
    display: grid;
    gap: 15px;
}

.resumo-historico .info-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.resumo-historico .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resumo-historico .info-item i {
    font-size: 24px;
    color: #007bff;
    min-width: 30px;
    text-align: center;
    background: #e3f2fd;
    padding: 8px;
    border-radius: 50%;
    margin: 0;
    font-style: normal;
}

.resumo-historico .info-item:nth-child(1) i { background: #e8f5e8; color: #28a745; }
.resumo-historico .info-item:nth-child(2) i { background: #fff3cd; color: #ffc107; }
.resumo-historico .info-item:nth-child(3) i { background: #ffeaa7; color: #fdcb6e; }
.resumo-historico .info-item:nth-child(4) i { background: #ddd6fe; color: #8b5cf6; }
.resumo-historico .info-item:nth-child(5) i { background: #fde8e8; color: #f56565; }
.resumo-historico .info-item:nth-child(6) i { background: #dbeafe; color: #3b82f6; }

.resumo-historico .info-content {
    flex: 1;
    line-height: 1.6;
}

.resumo-historico .info-content strong {
    display: block;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 2px;
}

.resumo-historico .info-content span {
    color: #495057;
    font-size: 14px;
}

.resumo-sem-registros {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 6px solid #28a745;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
}

.resumo-sem-registros .info-item {
    justify-content: center;
    font-size: 18px;
    color: #155724;
    margin-bottom: 0;
}

.resumo-sem-registros .info-item i {
    font-size: 32px;
    color: #28a745;
    margin-right: 15px;
    font-style: normal;
}

.contestacao-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

/* Estilos melhorados para Dados Climáticos */
.dados-climaticos {
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 6px solid #2196f3;
    box-shadow: 0 4px 20px rgba(33,150,243,0.1);
}

.dados-climaticos .info-list {
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

/* Ajuste para telas menores que 1024px mas maiores que 768px */
@media (max-width: 1024px) and (min-width: 769px) {
    .dados-climaticos .info-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Ajuste para telas entre 600px e 768px */
@media (max-width: 768px) and (min-width: 601px) {
    .dados-climaticos .info-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dados-climaticos .info-item {
        padding: 16px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .dados-climaticos .info-item i {
        flex-shrink: 0;
        margin-bottom: 0;
        font-size: 24px;
        padding: 9px;
    }
}

.dados-climaticos .info-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #2196f3;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.dados-climaticos .info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.dados-climaticos .info-item i {
    font-size: 26px;
    min-width: 35px;
    text-align: center;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 50%;
    margin: 0;
    font-style: normal;
}

.dados-climaticos .info-item:nth-child(1) i { 
    background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%); 
    color: #f57c00; 
}
.dados-climaticos .info-item:nth-child(2) i { 
    background: linear-gradient(135deg, #e1f5fe 0%, #81d4fa 100%); 
    color: #0277bd; 
}
.dados-climaticos .info-item:nth-child(3) i { 
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%); 
    color: #7b1fa2; 
}
.dados-climaticos .info-item:nth-child(4) i { 
    background: linear-gradient(135deg, #e8f5e8 0%, #a5d6a7 100%); 
    color: #388e3c; 
}

.dados-climaticos .info-content {
    flex: 1;
    line-height: 1.6;
}

.dados-climaticos .info-content strong {
    display: block;
    color: #1565c0;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.dados-climaticos .info-content span {
    color: #37474f;
    font-size: 15px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.5;
}

.dados-sem-clima {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border-radius: 12px;
    border-left: 6px solid #ffc107;
}

.dados-sem-clima .info-item {
    justify-content: center;
    font-size: 16px;
    color: #856404;
    margin-bottom: 0;
}

.dados-sem-clima .info-item i {
    font-size: 28px;
    color: #ffc107;
    margin-right: 15px;
    font-style: normal;
}

.clima-card.full-width {
    grid-column: 1 / -1;
}

.clima-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.clima-stats, .infraestrutura-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #555;
}

.infraestrutura-stats .stat-item:nth-child(1) .stat-value {
    color: #3498db; /* Azul - Educação */
}

.infraestrutura-stats .stat-item:nth-child(2) .stat-value {
    color: #2ecc71; /* Verde - Saúde */
}

.infraestrutura-stats .stat-item:nth-child(3) .stat-value {
    color: #e74c3c; /* Vermelho - Comércio */
}

.insight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.avaliacao-container {
    display: flex;
    align-items: center;
}

.avaliacao-valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 30px;
    min-width: 120px;
}

.big-rating {
    font-size: 42px;
    font-weight: bold;
    color: #f39c12;
}

.avaliacao-info {
    flex: 1;
}

.chart-container {
    position: relative;
    height: 350px;
    margin: 30px 0;
}

.weather-metric {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-direction: column;
    height: calc(100% - 30px);
}

.weather-metric-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 50%;
    margin-bottom: 10px;
}

.weather-metric-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.weather-metric-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.weather-metric-title:before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #3498db;
    border-radius: 50%;
    margin-right: 10px;
}

.weather-metric-data {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.period-data {
    display: flex;
    flex-direction: column;
}

.period-label {
    font-size: 12px;
    color: #666;
}

.period-value {
    font-weight: bold;
    font-size: 16px;
}

.entorno-valor {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.entorno-num {
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.entorno-desc {
    font-size: 14px;
    color: #555;
}

.weather-metric-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-style: italic;
    color: #555;
    width: 100%;
}

.parques-lista {
    margin-left: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.parque-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.parque-item:last-child {
    margin-bottom: 0;
}

.parque-item:hover {
    background-color: rgba(46, 204, 113, 0.2);
}

.parque-item i {
    font-size: 18px;
    margin-right: 10px;
    color: #27ae60;
}

/* Estilos para a seção de links e fotos */
.maps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.maps-link {
    flex: 0 0 auto;
    margin: 20px 0;
}

.maps-photo-container {
    flex: 1;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.maps-photo-container:hover {
    transform: scale(1.02);
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4285F4; /* Cor do Google */
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 16px;
    min-width: 200px;
}

.btn-maps:hover {
    background-color: #3367D6; /* Cor do Google um pouco mais escura */
    transform: translateY(-2px);
}

.region-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.maps-photo-container:hover .region-photo {
    transform: scale(1.03);
}

/* Estilos para estrelas de avaliação */
.rating-stars {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.star-filled {
    color: #FFD700; /* Dourado */
    font-size: 22px;
}

.star-empty {
    color: #ddd;
    font-size: 22px;
}

/* Responsividade */
@media (max-width: 768px) {
    .table-responsive-notice {
        display: block;
    }
    
    .table-responsive-notice i {
        animation: slide-right 1.5s infinite;
        display: inline-block;
    }
    
    .clima-stats, .infraestrutura-stats {
        grid-template-columns: 1fr;
    }
    
    .avaliacao-container {
        flex-direction: column;
    }
    
    .avaliacao-valor {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .maps-container {
        flex-direction: column;
    }
    
    .maps-photo-container {
        max-width: 100%;
    }
    
    /* Correção para a seção de infraestrutura */
    .info-entorno-intro {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-entorno-intro i {
        margin-bottom: 10px;
        align-self: flex-start;
    }
    
    .entorno-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Ajustes para tabela responsiva */
    .section table {
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }
    
    .table-responsive-wrapper {
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none; /* Remove barra padrão no IE/Edge */
        scrollbar-width: thin; /* Barra fina no Firefox */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        overflow-y: hidden;
        padding-bottom: 3px; /* Reduzido para evitar problemas com a barra de rolagem */
        border-radius: 5px;
    }
    
    .table-responsive-wrapper::-webkit-scrollbar {
        height: 6px;
        background-color: #f0f0f0;
        border-radius: 3px;
    }
    
    .table-responsive-wrapper::-webkit-scrollbar-thumb {
        background-color: #3498db;
        border-radius: 3px;
        animation: pulse-scrollbar 2s infinite;
    }
    
    .table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: #2980b9;
        animation: none;
    }
    
    /* Indicador visual de rolagem */
    .table-responsive-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 5px;
        width: 8px;
        height: 30px;
        margin-top: -15px;
        background-color: rgba(52, 152, 219, 0.3);
        border-radius: 4px;
        pointer-events: none;
        z-index: 1;
        animation: pulse-indicator 2s infinite;
    }
    
    @keyframes pulse-indicator {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.7; }
    }
    
    /* Formatação para células */
    .section table td, 
    .section table th {
        white-space: nowrap;
        min-width: 120px;
    }
    
    /* Congelar primeira coluna (data) para referência */
    .section table th:first-child,
    .section table td:first-child {
        position: sticky;
        left: 0;
        background-color: #fff;
        z-index: 1;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    /* Ajuste estético para a primeira coluna fixa */
    .section table tr:nth-child(even) td:first-child {
        background-color: #f9f9f9;
    }
    
    .weather-info {
        flex-direction: column;
    }
    
    .weather-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .report-container {
        padding: 15px;
    }
    
    body {
        padding: 10px;
    }
    
    .weather-column {
        min-width: 170px;
    }
}

/* Media query para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .weather-data {
        font-size: 12px;
    }
    
    .section table td, 
    .section table th {
        padding: 8px 5px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .weather-column {
        min-width: 150px; /* Mais compacta em telas muito pequenas */
    }
    
    .weather-info {
        padding: 5px;
    }
    
    .weather-description {
        font-size: 13px;
    }
    
    .weather-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .weather-metric-title {
        font-size: 16px;
    }
    
    .table-responsive-notice {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Correções adicionais para a seção de infraestrutura */
    .entorno-title {
        font-size: 16px;
        margin-top: 5px;
    }
    
    .entorno-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .info-entorno-intro {
        padding: 12px 15px;
    }
    
    .info-entorno-intro i {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Estilos para novos elementos */
.contestacao-link {
    display: inline-block; 
    background-color: #e74c3c; 
    color: white; 
    padding: 10px 15px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.condicoes-climaticas {
    margin-top: 20px;
}

.condicoes-climaticas h3 {
    margin-bottom: 10px;
}

.condicoes-grid {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px;
}

.condicao-card {
    background-color: #f0f0f0; 
    border-radius: 5px; 
    padding: 10px; 
    width: 220px;
}

.condicao-titulo {
    font-weight: bold; 
    margin-bottom: 5px;
}

.info-entorno-intro {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.info-entorno-intro i {
    font-size: 24px;
    background-color: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.info-entorno-intro strong {
    font-size: 18px;
    color: #2c3e50;
}

.info-entorno-intro p {
    margin-top: 10px;
    color: #555;
    line-height: 1.5;
}

.maps-container-center {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.maps-embed-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px;
    max-width: 1000px;
}

.maps-photo-section {
    margin: 50px 0 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.maps-photo-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.foto-data-container {
    text-align: center;
    margin-bottom: 15px;
}

.foto-data {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-style: italic;
}

.maps-button-section {
    margin-top: 30px;
}

.maps-photo-container.centered {
    margin: 0 auto;
    max-width: 900px;
    display: block;
}

/* Altura mínima para os cards lado a lado */
.clima-grid .clima-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.clima-grid .clima-card .weather-metric {
    flex: 1;
}

.table-responsive-notice {
    display: none;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #f0f8ff;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.table-responsive-notice i {
    margin-right: 5px;
}

/* Indicadores de rolagem para cada lado */
.scroll-indicator-left,
.scroll-indicator-right {
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -8px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-indicator-left {
    left: 5px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(52, 152, 219, 0.3);
}

.scroll-indicator-right {
    right: 5px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(52, 152, 219, 0.3);
}

.table-responsive-wrapper.can-scroll-left .scroll-indicator-left {
    opacity: 1;
}

.table-responsive-wrapper.can-scroll-right .scroll-indicator-right {
    opacity: 1;
}

@media (max-width: 768px) {
    .table-responsive-notice {
        display: block;
    }
    
    .clima-stats, .infraestrutura-stats {
        grid-template-columns: 1fr;
    }
    
    .clima-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .weather-metric-data {
        gap: 15px;
    }
    
    .period-data {
        min-width: 100px;
        flex: 1;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .clima-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .weather-metric-data {
        gap: 15px;
        flex-direction: column;
    }
    
    .period-data {
        min-width: auto;
    }
}

/* Ajustes específicos para coluna de clima na tabela */
.weather-column {
    min-width: 180px;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    position: relative;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Animações globais */
@keyframes slide-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes pulse-scrollbar {
    0%, 100% { background-color: #3498db; }
    50% { background-color: #2980b9; }
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.entorno-content {
    flex: 1;
}

.entorno-title {
    font-size: 18px;
    color: #2c3e50;
    display: block;
}

.entorno-description {
    margin-top: 10px;
    color: #555;
    line-height: 1.5;
}

/* Controle de visibilidade das versões desktop e mobile */
.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

/* Timeline styles para mobile */
.timeline {
    position: relative;
    margin-left: 15px;
    border-left: 3px solid #4CAF50;
}

.event {
    position: relative;
    margin: 20px 0;
    padding-left: 20px;
}

.event::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}

.event h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.event p {
    margin: 2px 0;
    font-size: 14px;
    color: #555;
}

.weather {
    font-weight: bold;
    color: #333;
    margin-top: 8px;
}

.weather small {
    font-weight: normal;
    display: block;
    color: #777;
    font-size: 13px;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.mobile-view h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

/* Media queries para alternar entre desktop e mobile */
@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }
    
    .mobile-view {
        display: block;
    }
}

@media (max-width: 480px) {
    .event h4 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .event p {
        font-size: 13px;
    }
    
    .weather small {
        font-size: 12px;
    }
    
    .timeline {
        margin-left: 10px;
    }
    
    .event {
        padding-left: 15px;
    }
}

/* Responsividade adicional para mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Responsividade para Informações Iniciais */
    .info-inicial {
        padding: 15px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 8px;
        margin-bottom: 25px;
    }
    
    .info-inicial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-inicial .info-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-inicial .info-item i {
        align-self: center;
        margin-bottom: 8px;
        font-size: 22px;
        padding: 8px;
    }
    
    /* Responsividade para Resumo do Histórico */
    .resumo-historico {
        padding: 15px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 8px;
    }
    
    .resumo-historico .info-list {
        gap: 10px;
    }
    
    .resumo-historico .info-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .resumo-historico .info-item i {
        align-self: center;
        margin-bottom: 5px;
        font-size: 20px;
        padding: 6px;
    }
    
    .resumo-sem-registros {
        padding: 20px 12px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    /* Responsividade para Dados Climáticos - Mobile otimizado */
    .dados-climaticos {
        padding: 15px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 8px;
    }
    
    .dados-climaticos .info-list {
        grid-template-columns: 1fr; /* Uma única coluna para mobile */
        gap: 12px;
    }
    
    .dados-climaticos .info-item {
        padding: 15px;
        flex-direction: column; /* Layout vertical no mobile */
        text-align: center;
        gap: 10px;
        word-wrap: break-word; /* Quebra palavras longas */
    }
    
    /* Remover qualquer override no mobile */
    .dados-climaticos .info-item:nth-child(3),
    .dados-climaticos .info-item:nth-child(4) {
        grid-column: unset; /* Normalizar grid para mobile */
    }
    
    .dados-climaticos .info-item i {
        align-self: center;
        margin-bottom: 8px;
        font-size: 22px;
        padding: 8px;
        flex-shrink: 0; /* Evitar que o ícone encolha */
    }
    
    /* Melhorar tipografia no mobile */
    .dados-climaticos .info-content strong {
        font-size: 15px; /* Tamanho menor para mobile */
        word-wrap: break-word;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .dados-climaticos .info-content span {
        font-size: 14px; /* Tamanho menor para mobile */
        word-wrap: break-word;
        line-height: 1.5;
        hyphens: auto; /* Hifenização automática */
    }
    
    .dados-sem-clima {
        padding: 20px 12px;
        margin-left: -10px;
        margin-right: -10px;
    }
}

/* Responsividade para tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Responsividade para Informações Iniciais */
    .info-inicial {
        padding: 20px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 10px;
        margin-bottom: 25px;
    }
    
    .info-inicial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-inicial .info-item {
        padding: 18px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .info-inicial .info-item i {
        margin-bottom: 0;
        font-size: 24px;
        padding: 9px;
    }
    
    /* Responsividade para Resumo do Histórico */
    .resumo-historico {
        padding: 20px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 10px;
    }
    
    .resumo-historico .info-list {
        gap: 12px;
    }
    
    .resumo-historico .info-item {
        padding: 15px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .resumo-historico .info-item i {
        margin-bottom: 0;
        font-size: 22px;
        padding: 8px;
    }
    
    .resumo-sem-registros {
        padding: 25px 15px;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    /* Responsividade para Dados Climáticos - MUDANÇA AQUI */
    .dados-climaticos {
        padding: 20px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 10px;
    }
    
    .dados-climaticos .info-list {
        grid-template-columns: 1fr; /* Mudança: uma coluna apenas para tablet */
        gap: 15px;
    }
    
    .dados-climaticos .info-item {
        padding: 18px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    /* Remover override para nth-child no tablet */
    .dados-climaticos .info-item:nth-child(3),
    .dados-climaticos .info-item:nth-child(4) {
        grid-column: unset; /* Remover override específico */
    }
    
    .dados-climaticos .info-item i {
        margin-bottom: 0;
        font-size: 24px;
        padding: 9px;
        flex-shrink: 0; /* Evitar que o ícone encolha */
    }
    
    /* Melhorar quebra de texto para títulos longos */
    .dados-climaticos .info-content strong {
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .dados-climaticos .info-content span {
        word-wrap: break-word;
        line-height: 1.5;
    }
    
    .dados-sem-clima {
        padding: 25px 15px;
        margin-left: -5px;
        margin-right: -5px;
    }
} 