/* Reset e configura??es b?sicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
}

/* Container principal */
#map {
    width: 100%;
    height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform: translateX(-100%); /* Escondida por padr?o */
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c82333;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-header i {
    margin-right: 8px;
}


.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 14px 0;
    padding: 4px;
    background: #eef0f2;
    border-radius: 10px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 3;
}

.sidebar-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #495057;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-tab:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.55);
}

.sidebar-tab--active {
    color: #c82333;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-tab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.sidebar-tab-panel--active {
    display: flex;
}

.sidebar-tab-panel[hidden] {
    display: none !important;
}

.section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.section:last-child {
    border-bottom: none;
}

.section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section h3 i {
    margin-right: 8px;
    color: #dc3545;
    width: 16px;
}

/* Bot?o Dashboard */
.dashboard-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.dashboard-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.dashboard-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.dashboard-btn i {
    font-size: 16px;
}

/* Bot?o Gr?fico */
.chart-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.chart-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.chart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.chart-btn i {
    font-size: 16px;
}

/* Modal Dashboard */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 95%;
    max-width: 1600px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    font-size: 18px;
}

/* Abas do Dashboard */
.dashboard-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    padding: 0;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background-color: white;
    color: #dc3545;
    border-bottom-color: #dc3545;
    font-weight: 600;
}

.tab-button:first-child {
    border-top-left-radius: 0;
}

.tab-button:last-child {
    border-top-right-radius: 0;
}

/* Conte?do das abas */
.tab-content {
    display: none;
    padding: 20px;
    min-height: 300px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Filtros da tabela */
.table-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.table-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.table-filters .filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.table-filters .filter-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 150px;
}

.table-filters .filter-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.table-filters .filter-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.table-filters .filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.table-filters .filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-filters .filter-btn:not(.filter-btn-secondary) {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.table-filters .filter-btn:not(.filter-btn-secondary):hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
}

.table-filters .filter-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.table-filters .filter-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.table-filters .filter-btn-print {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
}

.table-filters .filter-btn-print:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

/* Estilos da tabela AVCBs */
.table-container {
    max-height: 500px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avcbs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 14px;
}

.avcbs-table thead {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.avcbs-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    min-width: 150px;
}

.avcbs-table th:first-child {
    width: auto;
    min-width: auto;
    max-width: 150px;
}

/* Ajustar largura da coluna 'lat' */
.avcbs-table th[data-column="lat"],
.avcbs-table td[data-column="lat"] {
    width: auto;
    min-width: auto;
    max-width: 120px;
}

/* Ajustar largura da coluna 'long' */
.avcbs-table th[data-column="long"],
.avcbs-table td[data-column="long"] {
    width: auto;
    min-width: auto;
    max-width: 120px;
}

/* Ajustar largura da coluna 'validade' */
.avcbs-table th[data-column="validade"],
.avcbs-table td[data-column="validade"] {
    width: auto;
    min-width: auto;
    max-width: 100px;
}

/* Ajustar largura da coluna 'cidade' */
.avcbs-table th[data-column="cidade"],
.avcbs-table td[data-column="cidade"] {
    width: auto;
    min-width: auto;
    max-width: 140px;
}

.avcbs-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.avcbs-table td:first-child {
    width: auto;
    min-width: auto;
    max-width: 150px;
}

.avcbs-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.avcbs-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.avcbs-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Indicador de status na tabela */
.status-valid {
    color: #28a745;
    font-weight: 600;
}

.status-expired {
    color: #dc3545;
    font-weight: 600;
}

.status-no-date {
    color: #ffc107;
    font-weight: 600;
}

/* Cards de N?vel de Risco */
.risk-level-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.risk-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.risk-level-1 {
    border-color: #28a745;
}

.risk-level-1 .risk-card-header h4 {
    color: #28a745;
}

.risk-level-1 .risk-number {
    color: #28a745;
}

.risk-level-2 {
    border-color: #ffc107;
}

.risk-level-2 .risk-card-header h4 {
    color: #ffc107;
}

.risk-level-2 .risk-number {
    color: #ffc107;
}

.risk-level-3 {
    border-color: #dc3545;
}

.risk-level-3 .risk-card-header h4 {
    color: #dc3545;
}

.risk-level-3 .risk-number {
    color: #dc3545;
}

.risk-card-header {
    margin-bottom: 15px;
}

.risk-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.risk-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.risk-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade para cards de risco */
@media (max-width: 768px) {
    .risk-level-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .risk-card {
        padding: 15px;
    }
    
    .risk-number {
        font-size: 28px;
    }
    
    .risk-card-header h4 {
        font-size: 14px;
    }
}

/* Estilos para impress?o A4 */
@media print {
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }
    
    body * {
        visibility: hidden;
    }
    
    .print-content, .print-content * {
        visibility: visible;
    }
    
    .print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }
    
    .print-header h1 {
        font-size: 24px;
        margin: 0;
        color: #333;
    }
    
    .print-header p {
        font-size: 12px;
        margin: 5px 0 0 0;
        color: #666;
    }
    
    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 8px;
        margin-top: 10px;
    }
    
    .print-table th,
    .print-table td {
        border: 1px solid #333;
        padding: 3px 4px;
        text-align: left;
        vertical-align: top;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .print-table th {
        background-color: #f5f5f5;
        font-weight: bold;
        font-size: 7px;
    }
    
    /* Ajustar largura das colunas espec?ficas na impress?o */
    
    /* Colunas priorit?rias - largura m?xima para endere?o e nome */
    .print-table th[data-column="endereco"],
    .print-table td[data-column="endereco"],
    .print-table th[data-column="Endereco"],
    .print-table td[data-column="Endereco"],
    .print-table th[data-column="endere?o"],
    .print-table td[data-column="endere?o"],
    .print-table th[data-column="Endere?o"],
    .print-table td[data-column="Endere?o"],
    .print-table th[data-column="address"],
    .print-table td[data-column="address"] {
        width: auto;
        min-width: auto;
        max-width: 200px;
    }
    
    .print-table th[data-column="nome"],
    .print-table td[data-column="nome"],
    .print-table th[data-column="Nome"],
    .print-table td[data-column="Nome"],
    .print-table th[data-column="name"],
    .print-table td[data-column="name"],
    .print-table th[data-column="proprietario"],
    .print-table td[data-column="proprietario"],
    .print-table th[data-column="Proprietario"],
    .print-table td[data-column="Proprietario"] {
        width: auto;
        min-width: auto;
        max-width: 180px;
    }
    
    /* Colunas compactas - ajuste exato ao conte?do */
    .print-table th[data-column="N?"],
    .print-table td[data-column="N?"],
    .print-table th[data-column="n?"],
    .print-table td[data-column="n?"],
    .print-table th[data-column="numero"],
    .print-table td[data-column="numero"],
    .print-table th[data-column="n?mero"],
    .print-table td[data-column="n?mero"] {
        width: auto;
        min-width: auto;
        max-width: 50px;
    }
    
    .print-table th[data-column="cidade"],
    .print-table td[data-column="cidade"],
    .print-table th[data-column="Cidade"],
    .print-table td[data-column="Cidade"],
    .print-table th[data-column="municipio"],
    .print-table td[data-column="municipio"],
    .print-table th[data-column="Municipio"],
    .print-table td[data-column="Municipio"] {
        width: auto;
        min-width: auto;
        max-width: 80px;
    }
    
    .print-table th[data-column="processo"],
    .print-table td[data-column="processo"],
    .print-table th[data-column="Processo"],
    .print-table td[data-column="Processo"],
    .print-table th[data-column="numero_processo"],
    .print-table td[data-column="numero_processo"],
    .print-table th[data-column="protocolo"],
    .print-table td[data-column="protocolo"] {
        width: auto;
        min-width: auto;
        max-width: 70px;
    }
    
    .print-table th[data-column="situacao"],
    .print-table td[data-column="situacao"],
    .print-table th[data-column="Situacao"],
    .print-table td[data-column="Situacao"],
    .print-table th[data-column="status"],
    .print-table td[data-column="status"],
    .print-table th[data-column="Status"],
    .print-table td[data-column="Status"] {
        width: auto;
        min-width: auto;
        max-width: 60px;
    }
    
    .print-table th[data-column="validade"],
    .print-table td[data-column="validade"],
    .print-table th[data-column="Validade"],
    .print-table td[data-column="Validade"],
    .print-table th[data-column="data_validade"],
    .print-table td[data-column="data_validade"],
    .print-table th[data-column="vencimento"],
    .print-table td[data-column="vencimento"] {
        width: auto;
        min-width: auto;
        max-width: 70px;
    }
    
    .print-table th[data-column="lat"],
    .print-table td[data-column="lat"],
    .print-table th[data-column="Lat"],
    .print-table td[data-column="Lat"],
    .print-table th[data-column="latitude"],
    .print-table td[data-column="latitude"] {
        width: auto;
        min-width: auto;
        max-width: 80px;
    }
    
    .print-table th[data-column="long"],
    .print-table td[data-column="long"],
    .print-table th[data-column="Long"],
    .print-table td[data-column="Long"],
    .print-table th[data-column="longitude"],
    .print-table td[data-column="longitude"] {
        width: auto;
        min-width: auto;
        max-width: 80px;
    }
    
    .print-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    
    .print-footer {
        margin-top: 20px;
        text-align: center;
        font-size: 10px;
        color: #666;
        border-top: 1px solid #333;
        padding-top: 10px;
    }
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Estilos para o conte?do do dashboard */
.dashboard-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Estilos para filtros */
.dashboard-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.filter-input::placeholder {
    color: #999;
    font-style: italic;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:not(.filter-btn-secondary) {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.filter-btn:not(.filter-btn-secondary):hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.filter-btn-secondary {
    background: #6c757d;
    color: white;
}

.filter-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.filter-btn i {
    font-size: 12px;
}

/* Gr?fico do dashboard */
.dashboard-chart {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #17a2b8;
}

.dashboard-chart h4 {
    margin: 0 0 15px 0;
    color: #17a2b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-chart h4 i {
    font-size: 16px;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.no-chart-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
    font-style: italic;
    gap: 8px;
}

.no-chart-data i {
    font-size: 24px;
}

/* Estilos espec?ficos para o modal do gr?fico */
#chart-modal .modal-content {
    max-width: 1600px;
}

#chart-modal .modal-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.chart-modal-content {
    padding: 20px;
}

.chart-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.chart-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chart-control-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.chart-select:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.monthly-chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.chart-summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #17a2b8;
}

.chart-summary-number {
    font-size: 24px;
    font-weight: bold;
    color: #17a2b8;
    margin-bottom: 5px;
}

.chart-summary-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mensagens de feedback dos filtros */
.filter-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-message-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.filter-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.filter-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.filter-message i {
    font-size: 16px;
}

.dashboard-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section h3 i {
    color: #dc3545;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-stat {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dashboard-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stat.valid .dashboard-stat-number {
    color: #28a745;
}

.dashboard-stat.expired .dashboard-stat-number {
    color: #dc3545;
}

.dashboard-stat.no-date .dashboard-stat-number {
    color: #ffc107;
}

.dashboard-recommendations {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.dashboard-recommendations h4 {
    margin: 0 0 10px 0;
    color: #17a2b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.dashboard-recommendations li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-filters {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-btn {
        justify-content: center;
    }
}

/* Bot?o toggle da sidebar */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #218838;
    transform: translateY(-50%) scale(1.05);
}

/* Movimento do bot?o junto com a sidebar */
body.sidebar-open .sidebar-toggle {
    left: 370px; /* 350px (largura da sidebar) + 20px (margem) */
}

/* Se??o de carregamento local */
.load-local-section {
    margin-bottom: 20px;
}

.load-local-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-local-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.load-local-btn i {
    font-size: 16px;
}

.load-local-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

/* ?rea de upload */
.file-upload-area {
    border: 2px dashed #dc3545;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background: #f0f0f0;
    border-color: #c82333;
}

.file-upload-area.dragover {
    background: #fff5f5;
    border-color: #dc3545;
    border-style: solid;
}

.file-upload-area i {
    font-size: 32px;
    color: #dc3545;
    margin-bottom: 10px;
}

.file-upload-area p {
    color: #666;
    font-size: 14px;
}

.file-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.file-info p {
    margin: 5px 0;
    font-size: 14px;
}

.auto-load-info {
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

/* Filtros */
.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Checkbox group para filtros de validade */
.checkbox-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid #ddd;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkmark.valid {
    background-color: #28a745;
    border-color: #28a745;
}

.checkmark.expired {
    background-color: #dc3545;
    border-color: #dc3545;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:not(:checked) + .checkmark {
    background-color: transparent;
    border-color: #ddd;
}

/* Estat?sticas */
.stats-container {
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-item-full {
    width: 100%;
    margin-bottom: 10px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}

.stat-number.valid {
    color: #28a745;
}

.stat-number.expired {
    color: #dc3545;
}

.stat-number.no-date {
    color: #ffc107;
}

/* Cart?o de AVCB's a vencer */
.warning-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.warning-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.warning-card-header i {
    color: #856404;
    font-size: 18px;
}

.warning-card-header h4 {
    margin: 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.warning-card-content {
    text-align: center;
}

.days-selector {
    margin-bottom: 15px;
}

.days-selector label {
    display: block;
    font-size: 11px;
    color: #856404;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.days-select {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid #e0a800;
    border-radius: 6px;
    background: white;
    color: #856404;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.days-select:focus {
    outline: none;
    border-color: #856404;
    box-shadow: 0 0 0 3px rgba(133, 100, 4, 0.1);
}

.days-select:hover {
    border-color: #856404;
}

.warning-number {
    font-size: 32px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.warning-label {
    font-size: 12px;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart?es clic?veis */
.clickable-stat {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.clickable-stat:active {
    transform: translateY(-1px);
}

.clickable-stat.selected {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #007bff;
}

.clickable-stat.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #007bff;
}

.clickable-stat.stat-item-full.selected {
    border: 2px solid #007bff;
}

.clickable-stat.stat-item-full.selected::before {
    background: #007bff;
}

/* Lista de pontos */
.points-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.point-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.point-item:hover {
    background: #f8f9fa;
}

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

.point-item.selected {
    background: #fff5f5;
    border-left: 3px solid #dc3545;
}

.point-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.point-details {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.loading-content i {
    font-size: 32px;
    color: #dc3545;
    margin-bottom: 15px;
}

.loading-content p {
    color: #333;
    font-size: 16px;
}

/* Ajustar mapa quando sidebar est? aberta */
body.sidebar-open #map {
    margin-left: 350px;
}

/* Mapa ocupa toda a tela quando sidebar est? fechada */
body:not(.sidebar-open) #map {
    margin-left: 0;
}

/* Estilos para popups personalizados */
.popup-content {
    min-width: 200px;
    max-width: 300px;
}

.popup-content h4 {
    margin: 0 0 10px 0;
    color: #dc3545;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.popup-details p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

.popup-details strong {
    color: #333;
}

/* Status da validade nos popups */
.validity-status {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
    border-left: 4px solid;
}

.validity-status.valid {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.validity-status.expired {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.validity-status.no-date {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

/* Marcadores personalizados */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    
    body.sidebar-open #map {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .popup-content {
        min-width: 150px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        padding: 15px;
    }
    
    .section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-area {
        padding: 20px 15px;
    }
    
    .file-upload-area i {
        font-size: 24px;
    }
}

/* Estilos do Leaflet */
.leaflet-container {
    background: #f0f0f0;
}

/* Controles b?sicos do mapa */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin-bottom: 10px !important;
    margin-right: 10px !important;
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
}

.leaflet-control-zoom a {
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
}

/* Estilo para popups */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
}

/* Estilo para marcadores */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Botao de alternar basemap no mapa Leaflet (id layer-toggle; evitar .layer-btn global na sidebar) */
#layer-toggle.layer-btn {
    background-color: #fff !important;
    border: none !important;
    color: #333 !important;
    font-size: 16px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
}

#layer-toggle.layer-btn:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
    transform: scale(1.05) !important;
}

.leaflet-control-layers {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .leaflet-control-zoom a {
        font-size: 16px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }
    
    #layer-toggle.layer-btn {
        font-size: 14px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }
}

/* ==================== SELETOR DE CAMADAS ==================== */
/* Painel de camadas (sidebar) */
.layer-panel-section {
    margin-bottom: 0;
}

.layer-panel {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.layer-selector-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layer-search-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #868e96;
}

.layer-search-wrap {
    position: relative;
}

.layer-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 13px;
    pointer-events: none;
}

.layer-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.layer-search-input::placeholder {
    color: #adb5bd;
}

.layer-search-input:hover {
    border-color: #ced4da;
}

.layer-search-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.layer-select-wrap {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    overflow: hidden;
}

/* Lista de checkboxes (munic?pios): layout em coluna + ?rea com rolagem */
.layer-select-wrap.layer-checkbox-panel {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    min-height: 0;
}

.layer-check-row--all {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    box-sizing: border-box;
}

/* ~3 linhas vis?veis (min-height 36px + borda 1px por linha) */
.layer-check-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(3 * (36px + 1px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.layer-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #f0f2f4;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    min-height: 36px;
    box-sizing: border-box;
}

.layer-check-row:last-child {
    border-bottom: none;
}

.layer-check-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.layer-check-row .layer-check-label {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.layer-check-row--all .layer-check-badge {
    font-weight: 500;
    color: #6c757d;
}

.layer-check-row--hidden {
    display: none !important;
}

.layer-check-row:not(.layer-check-row--all):hover {
    background: #f8f9fa;
}

.layer-select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.4;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #212529;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    max-height: 200px;
}

.layer-select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.layer-select option {
    padding: 6px 8px;
}

.layer-count-hint {
    font-size: 11px;
    color: #868e96;
    margin: 0;
    min-height: 1.2em;
}

.layer-actions-primary {
    margin-top: 4px;
}

.layer-actions-primary .layer-btn-primary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.layer-actions-primary .layer-btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.35);
}

.layer-btn-block {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 14px;
}

.layer-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.layer-btn-muted {
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.layer-btn-muted:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

.layer-selector-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.layer-selector-buttons .layer-btn {
    flex: 1;
    min-width: 90px;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.layer-selector-buttons .layer-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layer-selector-buttons .layer-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.layer-selector-buttons .layer-btn-primary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    font-weight: 600;
}

.layer-selector-buttons .layer-btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

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

#layer-selector-section {
    animation: fadeIn 0.3s ease;
}

/* Responsividade para seletor de camadas */
@media (max-width: 768px) {
    .layer-actions-row {
        grid-template-columns: 1fr;
    }

    .layer-selector-buttons {
        flex-direction: column;
    }
    
    .layer-selector-buttons .layer-btn {
        width: 100%;
        min-width: unset;
    }
}

/* ==================== NOTIFICA??ES DO MAPA ==================== */
.map-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.map-notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.map-notification-content span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.map-notification-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.map-notification-close:hover {
    color: #333;
    transform: scale(1.1);
}

/* Tipos de notifica??o */
.map-notification-success {
    border-left: 4px solid #28a745;
}

.map-notification-success .map-notification-content span {
    color: #155724;
}

.map-notification-warning {
    border-left: 4px solid #ffc107;
}

.map-notification-warning .map-notification-content span {
    color: #856404;
}

.map-notification-error {
    border-left: 4px solid #dc3545;
}

.map-notification-error .map-notification-content span {
    color: #721c24;
}

.map-notification-info {
    border-left: 4px solid #17a2b8;
}

.map-notification-info .map-notification-content span {
    color: #0c5460;
}

/* Anima??o de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade notifica??es */
@media (max-width: 768px) {
    .map-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
    
    .map-notification-content {
        padding: 12px 15px;
    }
    
    .map-notification-content span {
        font-size: 13px;
    }
}
