/* Modern Glassmorphism Design System */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-bg: rgba(255, 255, 255, 0.4);
    --secondary-hover: rgba(255, 255, 255, 0.6);
    --danger-color: #ff4b4b;
    --danger-hover: #e63946;
    --success-color: #4caf50;

    /* Surface & Glass */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Typography & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e0c3fc;
    /* Fallback */
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Animations */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite alternate;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ff9a9e;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #a18cd1;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #84fab0;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-10deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Base Container & Glass Panels */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 4vh auto;
    padding: 0 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 8px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
}

#connection-status {
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#connection-status.connected {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

#connection-status.disconnected {
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

#path-display {
    font-family: 'Monaco', monospace;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Navigation Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 10px;
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    border: var(--glass-border);
}

.crumb {
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.crumb:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.crumb:last-child {
    color: var(--text-main);
    cursor: default;
    background: transparent;
}

.crumb:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
}

/* Toolbar & Buttons */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    border: var(--glass-border);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-hover);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
    transform: translateY(-2px);
}

/* Search Box */
.search-toolbar {
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
    margin: 6px 0;
    border: var(--glass-border);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 4px 12px;
    width: 100%;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    color: var(--text-main);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    transition: var(--transition);
}

.search-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* File List Table */
.file-list-container {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    margin-top: 4px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Custom internal scrollbar */
.file-list-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.file-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.file-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.file-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.file-list {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.file-list th,
.file-list td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Specific Column Alignments */
.file-list th:nth-child(2),
.file-list td:nth-child(2) {
    text-align: left;
}

/* Table Column Widths */
.col-checkbox,
.file-list td:nth-child(1) {
    width: 40px;
    text-align: center;
}

.col-name,
.file-list td:nth-child(2) {
    width: auto;
}

.col-size,
.file-list td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
}

.col-time,
.file-list td:nth-child(4) {
    width: 160px;
    white-space: nowrap;
}

.col-actions,
.file-list td:nth-child(5) {
    width: 140px;
    text-align: right;
}

.file-list th {
    background: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-list tbody tr {
    transition: var(--transition);
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-list tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.file-list tbody tr.selected {
    background: rgba(102, 126, 234, 0.1);
}

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #cbd5e1;
    border-radius: 0.25em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: var(--transition);
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: white;
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* File Visuals */
.file-name {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.file-name:hover {
    color: var(--primary-color);
}

.file-name.is-dir {
    color: #0f172a;
    font-weight: 600;
}

.file-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.col-size,
.col-time {
    color: var(--text-muted);
    font-size: 13px;
}

/* Inline Actions */
.file-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0.5;
    transition: var(--transition);
}

.file-list tbody tr:hover .file-actions {
    opacity: 1;
}

.action-btn {
    padding: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.action-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.action-btn.delete:hover {
    background: var(--danger-color);
    color: white;
    filter: grayscale(1) brightness(2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 800px;
}

#upload-modal .modal-content {
    width: 80vw;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
}

#upload-modal .modal-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-close {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Directory Tree & Modals Extras */
.move-filename {
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    font-family: monospace;
    color: var(--primary-color);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.dir-tree {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dir-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dir-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.dir-item.selected {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-hover);
    border-left: 3px solid var(--primary-color);
}

.dir-item.current {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    padding: 14px 28px;
    background: rgba(30, 41, 59, 0.9);
    color: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3000;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.notification.success {
    background: rgba(76, 175, 80, 0.95);
}

.notification.error {
    background: rgba(244, 67, 54, 0.95);
}

/* Dropzone Overlay */
.drop-zone {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.drop-zone.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.drop-zone-content {
    text-align: center;
    color: white;
    transform: scale(0.8);
    transition: var(--transition);
}

.drop-zone.active .drop-zone-content {
    transform: scale(1);
    animation: pulseFloat 2s infinite;
}

.drop-icon {
    font-size: 100px;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes pulseFloat {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-10px);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Upload Interface */
.dropzone {
    border: 2px dashed rgba(102, 126, 234, 0.5) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    transition: var(--transition);
}

.dropzone:hover {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.upload-file-item {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 12px;
    margin-bottom: 8px;
}

.upload-file-item .dz-upload {
    background: var(--primary-gradient) !important;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Preview */
.preview-image {
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.preview-text {
    background: #1e293b;
    color: #f8fafc;
    padding: 20px;
    font-size: 14px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Background Task Panel (Dynamic UI from app.js) */
.background-btn {
    animation: pulseFloat 2s infinite alternate;
    font-size: 13px;
    padding: 8px 16px;
    white-space: nowrap;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: var(--transition);
}

.background-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.background-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    max-height: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-header h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.background-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.background-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    padding: 10px;
}

.background-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.background-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.background-item:last-child {
    border-bottom: none;
}

.item-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.item-name {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    font-weight: 500;
}

.item-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    min-width: 50px;
    text-align: right;
}

.item-status {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.status-icon {
    font-size: 14px;
}

/* Modals & Forms Extras */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Utilities */
.empty-message,
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.empty-message .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    filter: grayscale(1);
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .toolbar-left,
    .toolbar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-toolbar {
        order: -1;
    }

    .file-list th:nth-child(3),
    .file-list td:nth-child(3),
    .file-list th:nth-child(4),
    .file-list td:nth-child(4) {
        display: none;
    }
}

/* ---- Dropzone Upload File Items ---- */
.upload-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.upload-file-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dz-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.dz-info {
    flex: 1;
    min-width: 0;
}

.dz-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.dz-size {
    font-size: 12px;
    color: var(--text-muted);
}

.dz-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
}

.dz-progress {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.dz-upload {
    display: block;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dz-percent {
    font-family: 'Monaco', monospace;
    font-size: 11px;
    color: var(--text-muted);
    min-width: 38px;
    text-align: right;
}

.dz-status {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 32px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.dz-chunks {
    font-size: 10px;
    color: var(--text-muted);
}

.dz-success-mark {
    color: var(--success-color);
    display: none;
    font-size: 16px;
}

.dz-error-mark {
    color: var(--danger-color);
    display: none;
    font-size: 16px;
}

.dz-error-message {
    display: none;
    font-size: 11px;
    color: var(--danger-color);
    margin-top: 3px;
}

.upload-file-item.dz-success .dz-success-mark {
    display: inline;
}

.upload-file-item.dz-error .dz-error-mark {
    display: inline;
}

.upload-file-item.dz-error .dz-error-message {
    display: block;
}

.dz-remove {
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
    flex-shrink: 0;
}

.dz-remove:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}