/* =============================================
   C_File_Upload1.css  –  File Uploader 1 Extra Styles
   Supplements C_Styles.css
   ============================================= */

/* ---------- Drop Zone ---------- */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    padding: 38px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    position: relative;
    user-select: none;
}

.drop-zone.drag-over {
    border-color: var(--accent);
    background: #ebebf6;
    box-shadow: 0 0 0 4px rgba(90,90,140,.10);
}

.drop-zone .dz-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
    opacity: .38;
    display: block;
    pointer-events: none;
}

.drop-zone .dz-primary-text {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    pointer-events: none;
}

.drop-zone .dz-secondary-text {
    font-size: .78rem;
    color: var(--text-label);
    pointer-events: none;
}

.drop-zone .dz-browse-link {
    color: var(--accent-light);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    pointer-events: all;
}

/* Hidden native file input */
#hdnFileInput {
    display: none;
}

/* ---------- Upload Rules Note ---------- */
.upload-rules-note {
    font-size: .76rem;
    color: var(--text-label);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-top: 10px;
    line-height: 1.85;
}

.upload-rules-note strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- Queue Section ---------- */
.queue-section {
    margin-top: 22px;
}

.queue-section .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.queue-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    border-radius: 20px;
    letter-spacing: 0;
    text-transform: none;
}

.queue-empty-msg {
    font-size: .82rem;
    color: var(--text-label);
    text-align: center;
    padding: 18px 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    margin-top: 6px;
}

/* Queue table extras */
table.re1-grid td.td-thumb {
    width: 50px;
    padding-right: 4px;
}

table.re1-grid td.td-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: block;
}

.q-status-pending {
    font-size: .72rem;
    color: var(--text-label);
}

.q-status-error {
    font-size: .72rem;
    color: var(--danger);
}

td.td-remove {
    width: 36px;
    text-align: center;
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--text-label);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.btn-remove-file:hover {
    background: #fce8e6;
    color: var(--danger);
}

/* ---------- Progress Bar ---------- */
.upload-progress-wrap {
    display: none;
    margin-top: 14px;
}

.upload-progress-wrap.visible {
    display: block;
}

.progress-label {
    font-size: .78rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.progress-bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    width: 0%;
    transition: width .3s ease;
}

/* ---------- Batch Results Modal ---------- */
.modal-box.batch-modal {
    max-width: 560px;
}

.batch-results-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
}

.batch-results-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
    color: var(--text-secondary);
}

.batch-results-list li:last-child {
    border-bottom: none;
}

.result-filename {
    flex: 1;
    word-break: break-all;
    line-height: 1.45;
}

.badge-result {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.badge-result.success {
    background: #d4f0e0;
    color: #1e7a45;
}

.badge-result.failed {
    background: #fce8e6;
    color: #a93226;
}

.batch-result-error {
    display: block;
    font-size: .70rem;
    color: var(--danger);
    margin-top: 3px;
    font-style: italic;
}
