/* ============================================
   Pending Sources — Modal + Map Styles
   v5.0 - Unified black/red/white theme
   ============================================ */

/* Modal overlay */
#pending-sources-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

#pending-sources-modal .ps-modal {
    background: #0a0a1a;
    border: 1px solid #333;
    border-top: 2px solid #e63946;
    color: #e0e0e0;
    border-radius: 12px;
    width: 520px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.ps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #222;
}

.ps-header h2 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
}

.ps-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.ps-close-btn:hover {
    color: #e63946;
}

.ps-body {
    padding: 12px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

/* List items */
.ps-item {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 4px solid #e63946;
}

.ps-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.ps-item-name {
    font-weight: bold;
    font-size: 0.95em;
    color: #fff;
}

.ps-item-type {
    font-size: 0.8em;
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.ps-item-meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 4px;
}

.ps-item-desc {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 8px;
    font-style: italic;
}

.ps-item-actions {
    display: flex;
    gap: 6px;
}

.ps-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.15s;
}

.ps-btn:hover {
    opacity: 0.85;
}

.ps-btn-locate {
    background: #222;
    border: 1px solid #333;
    color: #e0e0e0;
}

.ps-btn-locate:hover {
    border-color: #e63946;
    color: #fff;
}

.ps-btn-promote {
    background: #e63946;
    color: #fff;
}

.ps-btn-promote:hover {
    background: #d32f3f;
}

.ps-btn-delete {
    background: #444;
    color: #fff;
}

.ps-btn-delete:hover {
    background: #e63946;
}

.ps-empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-style: italic;
}

/* Badge on drawer button */
.ps-badge {
    display: none;
    background: #e63946;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Map marker styles */
.pending-plus-icon {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.pending-vertex-num {
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}