/* 拖拽控制面板样式 重制版 (Modern Base)
 * 作者：Hackerdallas */

.drag-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px);
    z-index: 9998; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; border: 2px dashed transparent;
}
.drag-overlay.active { opacity: 1; visibility: visible; border-color: var(--primary); }
.drag-content { text-align: center; transform: scale(0.95); transition: transform 0.3s ease; }
.drag-overlay.active .drag-content { transform: scale(1); }
.drag-icon { color: var(--primary); margin-bottom: 20px; }
.drag-text { font-size: 24px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.drag-hint { font-size: 14px; color: var(--text-muted); }

.drag-file-panel, .upload-progress-panel {
    position: fixed; bottom: 24px; right: 24px; width: 400px; max-height: 500px;
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 9997;
    display: flex; flex-direction: column; transform: translateY(120%);
    opacity: 0; transition: all 0.3s ease;
}
.drag-file-panel.active, .upload-progress-panel.active { transform: translateY(0); opacity: 1; }
.drag-file-header, .progress-panel-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.1); border-radius: 16px 16px 0 0;
}
.drag-file-title, .progress-title { font-size: 14px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

.btn-clear-all { padding: 6px 12px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 6px; color: var(--danger); font-size: 12px; cursor: pointer; transition: 0.2s; }
.drag-file-list, .file-progress-list { flex: 1; overflow-y: auto; padding: 12px; min-height: 120px; max-height: 300px; }
.drag-file-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg-base); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 8px; }
.drag-file-item:last-child { margin-bottom: 0; }
.file-preview { width: 40px; height: 40px; border-radius: 6px; background: var(--bg-surface-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.btn-remove-file { width: 30px; height: 30px; border-radius: 6px; background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.btn-remove-file:hover { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); }
.drag-file-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.1); border-radius: 0 0 16px 16px; }
.drag-total-size { font-size: 12px; color: var(--text-muted); }
.drag-file-actions { display: flex; gap: 10px; }
.btn-cancel-upload { padding: 8px 16px; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: 0.2s; }
.btn-cancel-upload:hover { background: var(--bg-surface-hover); color: var(--text-main); }
.btn-start-upload { padding: 8px 16px; background: var(--primary); border: none; border-radius: 6px; color: white; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-start-upload:hover { background: var(--primary-hover); }

.progress-overall { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.progress-bar-container { height: 6px; background: var(--bg-base); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; }

.success-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.success-panel.active { opacity: 1; visibility: visible; }
.success-content { text-align: center; }
.success-icon { color: var(--success); margin-bottom: 24px; }
.success-title { font-size: 24px; font-weight: 600; color: var(--success); margin-bottom: 12px; }
.success-message { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.success-actions { display: flex; gap: 16px; justify-content: center; }
.btn-view-files { padding: 12px 24px; background: var(--success); border: none; border-radius: 8px; color: white; font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-view-files:hover { filter: brightness(1.1); }
.btn-continue-upload { padding: 12px 24px; background: transparent; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 14px; cursor: pointer; }
.btn-continue-upload:hover { background: var(--bg-surface-hover); }
