/**
 * Satellite Layers Styles - Compact Design
 * Matches dashboard capas-submenu style
 */

/* Satellite Layer Item - Compact Style */
.satellite-layer-item {
    padding: 8px 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all var(--dur) var(--ease);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 4px;
    border: none;
}

.satellite-layer-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.satellite-layer-item.active {
    background: var(--success-wash);
    color: var(--text-primary);
    font-weight: 600;
}

.satellite-layer-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.satellite-layer-item.disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

/* Layer Toggle */
.layer-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    cursor: pointer;
}

.layer-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

.layer-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.layer-name {
    font-size: 12px;
    color: inherit;
}

.layer-icon {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

/* Quota Display - Compact */
.quota-info {
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    text-align: center;
}

/* Request Images Button */
.request-images-btn {
    width: calc(100% - 8px);
    margin: 4px 4px;
    padding: 8px 12px;
    background: var(--accent-primary);
    color: var(--accent-on);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.request-images-btn:hover {
    background: var(--accent-hover);
}

.request-images-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.request-images-btn i {
    font-size: 12px;
}

.quota-item {
    display: inline;
    margin: 0 4px;
}

/* Loading State */
.satellite-loading {
    padding: 8px 10px;
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
}

.satellite-loading i {
    animation: spin 1s linear infinite;
    margin-right: 4px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Satellite Image Overlay */
/* NOTE: Z-index is controlled by Leaflet panes, not CSS */
/* satellitePane has z-index 400 (above geofences), geofencePane has z-index 350 */

.leaflet-image-layer {
    max-width: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Satellite Value Tooltip */
.satellite-value-tooltip {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-family: var(--font-mono) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-1) !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

/* Make tooltip clickable when interactive */
.leaflet-tooltip.satellite-value-tooltip.leaflet-interactive {
    pointer-events: auto !important;
}


.satellite-value-tooltip::before {
    border-top-color: var(--bg-secondary) !important;
}


