/* =========================================================
   STICKY FLOATING UPLOAD QUEUE PANEL STYLES
========================================================= */
#upload-queue-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-height: 50vh;
    /* Ensured lower than global-loading-overlay (z-index: 9999) */
    z-index: 1040;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* 💻 On Desktop: Slide left by 290px so 30px stays visible */
#upload-queue-panel.collapsed {
    transform: translateX(-290px);
}

.upload-panel-header {
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

#queue-body {
    padding: 0.75rem;
    max-height: 40vh;
    overflow-y: auto;
}

.queue-item {
    border-bottom: 1px solid #f1f1f1;
}

.queue-counts .badge {
    font-size: 1rem;
    padding: 6px 12px;
    color: white;
}

#queue-empty {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.progress-bar {
    transition: width 0.4s ease;
}

/* 📱 Mobile Layout Responsive Overrides */
@media (max-width: 768px) {
    #upload-queue-panel {
        width: 290px;
        left: 10px;
    }
    
    /* 📱 On Mobile: Slide left by 255px so actionable triggers remain visible */
    #upload-queue-panel.collapsed {
        transform: translateX(-255px);
    }
}