.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.map-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #999;
}

.ward-map-marker {
    background: transparent !important;
    border: none !important;
}

.ward-map-popup {
    font-size: 13px;
    line-height: 1.5;
}

.ward-map-status {
    font-weight: 600;
}

/* Status edit modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-dialog-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Floating toolbar for district shape editing */
.district-edit-toolbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Admin map styles */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-bottom: none;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: white;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
    font-weight: 600;
}

.import-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.import-section h4 {
    margin-top: 0;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    font-size: 0.85rem;
}

.status-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.status-table select {
    padding: 2px 6px;
    font-size: 0.85rem;
}

.category-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.category-row input[type="text"] {
    flex: 1;
}

.category-row input[type="color"] {
    width: 40px;
    height: 30px;
    padding: 2px;
    cursor: pointer;
}

/* Search highlight animation */
.search-highlight-ring {
    animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
