* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --danger-color: #ef4444;
    --danger-dark: #dc2626;
    --background-color: #f3f4f6;
    --card-color: #ffffff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h2 {
    margin: 1.5rem 0;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.upload-container {
    margin: 2.5rem 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(37, 99, 235, 0.05);
    position: relative;
    overflow: hidden;
}

.upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    z-index: 0;
}

.upload-label:hover {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-label span {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.upload-label::after {
    content: '📁';
    font-size: 2.5rem;
    margin-bottom: 1rem;
    z-index: 1;
}

input[type="file"] {
    display: none;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

/* Estilos para o mapa */
#map-container {
    margin: 2.5rem 0;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#map {
    height: 550px;
    width: 100%;
    z-index: 1;
}

/* Garantir que os controles do mapa fiquem visíveis */
.leaflet-control-container {
    z-index: 2;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: var(--card-color);
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: rgba(37, 99, 235, 0.05);
}

tr:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

td {
    border-bottom: 1px solid #e5e7eb;
}

.buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.9rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn::before {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

#download-csv::before {
    content: '📥';
}

.btn-secondary {
    background-color: var(--danger-color);
}

.btn-secondary:hover {
    background-color: var(--danger-dark);
}

#clear-data::before {
    content: '🗑️';
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    #map {
        height: 400px;
    }
}

/* Adicionar fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Estilos para o cabeçalho */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Estilos para cabeçalhos de seção */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    margin-right: 1rem;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* Estilos para cards de informação */
.info-card {
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.map-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.notification-content span {
    flex-grow: 1;
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification.success {
    border-left: 4px solid var(--secondary-color);
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

/* Estilos para o rodapé */
footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
} 