/* ===========================================
   Multi-Polygon Tools
   Extracted from styles.css for modularity
   =========================================== */

.edit-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.edit-section-title {
    font-size: 0.7rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 8px 0;
}

.edit-button-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.edit-button-row .action-btn {
    flex: 1;
}

.action-btn.secondary-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
}

.action-btn.secondary-btn:hover {
    background: #333;
    border-color: #666;
    color: #fff;
}

.action-btn.secondary-btn i {
    color: var(--primary-gold);
}

.action-btn.full-width {
    width: 100%;
}

/* Add Island / Split Mode Overlays */
#add-island-overlay,
#split-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(212, 175, 55, 0.95);
    padding: 12px 20px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#add-island-overlay.active,
#split-overlay.active {
    display: flex;
}

.add-island-message,
.split-message {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

.add-island-message i,
.split-message i {
    font-size: 1.2rem;
}

.add-island-message button,
.split-message button {
    background: #1a1a1a;
    color: var(--primary-gold);
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 12px;
}

.add-island-message button:hover,
.split-message button:hover {
    background: #333;
}

/* Merge Modal */
.modal-large {
    max-width: 500px;
}

.merge-candidates-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid #333;
    border-radius: 6px;
}

.merge-candidates-list {
    padding: 8px;
}

.merge-candidate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.merge-candidate:hover {
    background: rgba(255, 255, 255, 0.05);
}

.merge-candidate input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.candidate-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.candidate-name {
    flex: 1;
    color: #eee;
    font-weight: 500;
}

.candidate-district {
    font-size: 0.75rem;
    color: #888;
}

#merge-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
