/**
 * Estilos para o módulo de mapa
 */

.isp-tools-map-container {
    position: relative;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.isp-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 500;
    color: #555;
    backdrop-filter: blur(2px);
}

.isp-map-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.probe-info {
    font-family: Roboto, Arial, sans-serif;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.probe-info .probe-row {
    height: auto;
    width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  flex: auto;
}

.probe-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
  flex: auto;
}
.probe-col.left {
    flex: 2;
}

.probe-col.right {
    flex: 1;
    align-self: center;
}

.probe-info .asn {
    font-weight: bold;
    text-align: right;
}

.probe-info .location {
    text-align: end;
    align-self: center;
    font-style: italic;
    font-weight: normal;
    align-self: flex-end;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.probe-info .name {
    font-weight: bold;
    text-align: center;
    font-size: 11px;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.probe-info .logo {
    margin: 0 auto;
    height: auto;
}

/* Badge */
.probe-info .badge {
    display: inline;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-style: normal;
    font-weight: normal;
    border: 1px #ccc solid;
}

.badge.Inactive {
    background-color: #f0f0f0;
    color: #999;
}

.badge.Active {
    background-color: #2271b1;
    color: #fff;
}


/* Estilos para marcadores customizados se necessário */
.custom-marker {
    background-color: #2271b1;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Estilos para cache info (se adicionado no futuro) */
.isp-map-cache-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    z-index: 400;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Performance optimizations */
.leaflet-container {
    will-change: transform;
}

.leaflet-marker-icon {
    will-change: transform;
}

/* Loading progress bar */
.isp-map-progress {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #666;
    backdrop-filter: blur(3px);
}

.isp-map-progress-bar {
    width: 200px;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.isp-map-progress-fill {
    height: 100%;
    background-color: #2271b1;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Optimized marker cluster styles */
.marker-cluster {
    will-change: transform;
}

/* Responsividade */
@media (max-width: 768px) {
    .isp-tools-map-container {
        margin: 15px 0;
    }
    
    .probe-info {
        max-width: 200px;
    }
    
    .probe-info h4 {
        font-size: 14px;
    }
    
    .probe-info p {
        font-size: 12px;
    }
}
