/* Custom styles for Repeaters Map */
#map {
    z-index: 1;
}

/* Ensure Inter font is used throughout */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Custom marker styles */
.repeater-marker {
    cursor: pointer;
}

/* User location marker */
.user-location-marker {
    background: transparent !important;
    border: none !important;
}

/* Status indicator styles */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-online {
    background-color: #dcfce7;
    color: #166534;
}

.status-offline {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-unknown {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* Info panel styles */
#infoPanel {
    max-height: 80vh;
    overflow-y: auto;
}

#infoPanel::-webkit-scrollbar {
    width: 6px;
}

#infoPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#infoPanel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#infoPanel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 14px;
}

.repeater-popup-title {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.repeater-popup-info {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.repeater-popup-info-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.repeater-popup-label {
    font-weight: 500;
    color: #6b7280;
    margin-right: 8px;
}

.repeater-popup-value {
    color: #1f2937;
    text-align: right;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #infoPanel {
        max-width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }
}


