/* ═══════════════════════════════════════════════════
   City Canvas Admin Module — Styles
   Uses admin.css design system vars (--bg, --card, etc.)
   ═══════════════════════════════════════════════════ */

/* ── Map Container ── */
#cc-map-container {
    background: #111318;
}

#cc-map {
    background: #111318 !important;
}

/* Force Leaflet dark theme */
#cc-map .leaflet-control-zoom a {
    background: rgba(17, 19, 24, 0.9);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 18px;
}

#cc-map .leaflet-control-zoom a:hover {
    background: #6366f1;
    color: #fff;
}

#cc-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #6b7280 !important;
    font-size: 9px;
}

#cc-map .leaflet-control-attribution a {
    color: #9ca3af !important;
}

/* ── Pixel Overlay — CRITICAL: pixelated rendering ── */
.cc-pixel-overlay {
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: nearest-neighbor !important;
}

/* ── Pixel Tooltip ── */
.cc-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 20;
    transform: translate(-50%, -100%) translateY(-12px);
    transition: opacity 0.15s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cc-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.88);
}

/* ── Color swatch in pixel info ── */
.cc-color-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Ban Badge ── */
.cc-ban-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Empty Canvas State ── */
.cc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted, #6b7280);
    text-align: center;
}

.cc-empty .material-icons-outlined {
    font-size: 56px;
    opacity: 0.25;
    margin-bottom: 16px;
}
