/* Background-upload queue indicator + slide-out panel.
   Lives in the SecureMainLayout top bar, visible app-wide. */

.duo-upload-queue { position: relative; display: inline-flex; }

.duo-upload-queue__trigger {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #4B5563;
    transition: background 0.12s, color 0.12s;
}
.duo-upload-queue__trigger:hover { background: #F3F4F6; color: #003e7e; }
.duo-upload-queue__trigger--open { background: #DBEAFE; color: #1D4ED8; }

.duo-upload-queue__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.duo-upload-queue__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    z-index: 9998;
}

.duo-upload-queue__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.duo-upload-queue__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #E5E7EB;
}
.duo-upload-queue__panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.duo-upload-queue__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #6B7280;
    padding: 0 6px;
}
.duo-upload-queue__close:hover { color: #111827; }

.duo-upload-queue__panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px;
}

.duo-upload-queue__empty {
    padding: 24px 8px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.5;
}

.duo-upload-queue__upload-all {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #003e7e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.duo-upload-queue__upload-all:hover { background: #00509e; }

.duo-upload-queue__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duo-upload-queue__item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FAFBFC;
    align-items: flex-start;
}
.duo-upload-queue__item--uploading { background: #EFF6FF; border-color: #BFDBFE; }
.duo-upload-queue__item--failed { background: #FEF2F2; border-color: #FECACA; }

.duo-upload-queue__item-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.duo-upload-queue__item-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.duo-upload-queue__item-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #6B7280;
}
.duo-upload-queue__desc {
    margin-top: 2px;
    font-size: 11px;
    color: #4B5563;
}
.duo-upload-queue__error {
    margin-top: 4px;
    font-size: 11px;
    color: #B91C1C;
}
.duo-upload-queue__sep { margin: 0 4px; color: #D1D5DB; }
.duo-upload-queue__status--queued { color: #6B7280; }
.duo-upload-queue__status--uploading { color: #1D4ED8; font-weight: 600; }
.duo-upload-queue__status--failed { color: #B91C1C; font-weight: 600; }

.duo-upload-queue__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.duo-upload-queue__action {
    background: none;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}
.duo-upload-queue__action:hover { background: #F3F4F6; color: #003e7e; }
.duo-upload-queue__action--danger:hover { color: #DC2626; border-color: #FECACA; background: #FEE2E2; }

/* Video-specific styles in the CCE report */
#CceReportPage .cce-photo--video .cce-photo__open {
    background: #111827;
    color: #fff;
}
#CceReportPage .cce-photo__video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
}
