* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
}

.header {
    background: linear-gradient(135deg, #F85D10 0%, #FF8C42 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 24px;
}

.admin-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-link:hover {
    background: rgba(255,255,255,0.3);
}

#map {
    height: calc(100vh - 80px);
    width: 100%;
}

#area-info li {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 200px;
    max-width: 350px;
    max-height: 450px;
    overflow-y: auto;
}

.leaflet-popup-content h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.leaflet-popup-content ul {
    list-style: none;
    padding: 0;
}

.leaflet-popup-content li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.leaflet-popup-content li:last-child {
    border-bottom: none;
}

/* Estilo para informações adicionais longas */
.leaflet-popup-content p,
.leaflet-popup-content small {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    max-width: 100%;
}

/* Scrollbar customizada para o popup */
.leaflet-popup-content::-webkit-scrollbar {
    width: 6px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
    background: #F85D10;
    border-radius: 3px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb:hover {
    background: #FF8C42;
}

/* Label da área dentro do polígono */
.area-label {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #F85D10;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
    white-space: nowrap;
}

/* Label para pontos - discreto */
.area-label-point {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #999;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 500;
    font-size: 10px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    text-align: left;
    white-space: nowrap;
}

.area-label::before,
.area-label-point::before {
    display: none;
}

/* Botão flutuante de verificação de localização */
.floating-location-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #F85D10 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(248, 93, 16, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 93, 16, 0.6);
}

/* Painel de verificação de localização */
.location-check-panel {
    position: fixed;
    bottom: -400px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 1000;
    transition: bottom 0.4s ease;
}

.location-check-panel.active {
    bottom: 100px;
}

.location-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-check-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    background: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.btn-check-location {
    width: 100%;
    background: linear-gradient(135deg, #F85D10 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-check-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 93, 16, 0.4);
}

/* Marcador de localização do usuário (pulsante) */
.user-location-marker {
    background: transparent;
    border: none;
}

.user-pulse-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4CAF50;
    border: 3px solid white;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: userPulse 2s infinite;
    position: relative;
}

.user-pulse-marker::after {
    content: '📍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

@keyframes userPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .location-check-panel {
        right: 15px;
        left: 15px;
        width: auto;
    }
    
    .floating-location-btn {
        right: 15px;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }
}
