/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 0;
    border-bottom: none;
}

header h1 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 3em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 300;
}

/* Main Content Area */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    width: 100%;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mode-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Sections */
.section {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section.active {
    display: block;
}

.section h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 400;
    text-align: center;
}

/* Input Tabs */
.input-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    padding: 0 10px;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

/* Input Areas */
.input-area {
    display: none;
    margin-bottom: 20px;
}

.input-area.active {
    display: block;
}

/* Drag and Drop Areas */
.drag-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.drag-drop-area.drag-over {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.2);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-content .picker-btn {
    pointer-events: auto;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.drag-drop-area p {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
}

.or-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 20px 0 !important;
    font-weight: 300;
}

/* Buttons */
.picker-btn, .paste-btn, .copy-btn, .download-btn, .action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.picker-btn {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    backdrop-filter: blur(10px);
}

.picker-btn:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.paste-btn, .copy-btn {
    background: rgba(149, 165, 166, 0.9);
    color: white;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.paste-btn:hover, .copy-btn:hover {
    background: rgba(127, 140, 141, 1);
    transform: translateY(-2px);
}

.download-btn {
    background: rgba(39, 174, 96, 0.9);
    color: white;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(34, 153, 84, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.action-btn {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.action-btn:hover:not(:disabled) {
    background: rgba(192, 57, 43, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.action-btn:disabled {
    background: rgba(189, 195, 199, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* File Info */
.file-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.file-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Multi-File List */
.multi-file-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.multi-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.multi-file-header h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(192, 57, 43, 1);
    transform: translateY(-1px);
}

.file-items {
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

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

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

.file-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-item-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.file-item-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.file-item-remove {
    background: rgba(231, 76, 60, 0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.file-item-remove:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: scale(1.1);
}

.total-size {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Text Areas and Inputs */
textarea, input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

textarea:focus, input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

textarea::placeholder, input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Password Section */
.password-section {
    margin: 20px 0;
}

.password-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Output Options */
.output-options {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.output-options h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 25px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: auto;
    accent-color: #ffffff;
}

/* Progress Indicators */
.progress-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.progress-text {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Output Areas */
.output-area {
    margin: 20px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #4ade80;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.output-section {
    margin-bottom: 25px;
}

.output-section:last-child {
    margin-bottom: 0;
}

.output-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 500;
}

/* Error Display */
.error-display {
    margin: 20px 0;
    padding: 15px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #ffffff;
    border-left: 4px solid #e74c3c;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .drag-drop-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5em;
    }
}

/* Animation for drag and drop feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.drag-drop-area.drag-over {
    animation: pulse 1s infinite;
}

/* Loading animation for progress bars */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.progress-fill.loading {
    background: linear-gradient(90deg, #3498db 25%, #5dade2 50%, #3498db 75%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}/* Enha
nced Error Handling Styles */
.error-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.error-message {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
}

.error-recovery {
    background: rgba(231, 76, 60, 0.05);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.error-recovery h4 {
    color: #c0392b;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.error-recovery ul {
    margin: 0;
    padding-left: 20px;
}

.error-recovery li {
    margin-bottom: 8px;
    color: #721c24;
    font-size: 14px;
    line-height: 1.4;
}

.error-recovery li:last-child {
    margin-bottom: 0;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.retry-btn {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.error-id {
    font-size: 11px;
    color: #95a5a6;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(149, 165, 166, 0.2);
}

/* Success Messages */
.success-message {
    margin: 15px 0;
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    border-left: 4px solid #27ae60;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Temporary Messages */
.temporary-message {
    position: absolute;
    z-index: 1000;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    animation: fadeInOut 2s ease-in-out;
}

.temporary-message.success {
    background: #27ae60;
    color: white;
}

.temporary-message.error {
    background: #e74c3c;
    color: white;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-5px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

/* Critical Error Notification */
.critical-error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
    animation: slideInRight 0.5s ease-out;
}

.critical-error-notification .error-content {
    padding: 20px;
}

.critical-error-notification h3 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 16px;
}

.critical-error-notification p {
    color: #721c24;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.critical-error-notification button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    float: right;
}

.critical-error-notification button:hover {
    background: #c0392b;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Progress Indicators */
.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-time-estimate {
    font-size: 12px;
    color: #95a5a6;
    font-style: italic;
}

/* Error Severity Indicators */
.error-display.severity-low {
    border-left-color: #f39c12;
    background: #fef9e7;
    border-color: #fcf3cf;
    color: #7d6608;
}

.error-display.severity-medium {
    border-left-color: #e67e22;
    background: #fdf2e9;
    border-color: #fadbd8;
    color: #a04000;
}

.error-display.severity-high {
    border-left-color: #e74c3c;
    background: #fdf2f2;
    border-color: #f5c6cb;
    color: #721c24;
}

.error-display.severity-critical {
    border-left-color: #8e44ad;
    background: #f4ecf7;
    border-color: #e8daef;
    color: #4a235a;
    animation: pulse 2s infinite;
}

/* Responsive enhancements for error handling */
@media (max-width: 600px) {
    .critical-error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .error-recovery {
        padding: 12px;
    }
    
    .temporary-message {
        position: relative;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Debug mode indicators */
.debug-mode .error-id {
    display: block;
}

.debug-mode .progress-text::after {
    content: " [DEBUG]";
    color: #e67e22;
    font-size: 10px;
    font-weight: bold;
}

/* Accessibility improvements */
.error-display[role="alert"] {
    outline: 2px solid transparent;
}

.error-display:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.retry-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .error-display {
        border-width: 2px;
        border-style: solid;
    }
    
    .success-message {
        border-width: 2px;
        border-style: solid;
    }
    
    .temporary-message {
        border: 1px solid currentColor;
    }
}

/* Multi-File Download Interface */
.multi-file-downloads {
    margin-bottom: 20px;
}

/* File Preview Grid */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.file-preview-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    transition: all 0.3s ease;
}

.file-preview-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-preview-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.file-preview-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.file-preview-content {
    margin-bottom: 12px;
}

/* Text File Preview */
.text-preview-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-preview {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Image File Preview */
.image-preview-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* File Type Icons */
.file-type-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.file-type-icon.document { background: rgba(52, 152, 219, 0.2); }
.file-type-icon.image { background: rgba(39, 174, 96, 0.2); }
.file-type-icon.video { background: rgba(155, 89, 182, 0.2); }
.file-type-icon.audio { background: rgba(241, 196, 15, 0.2); }
.file-type-icon.archive { background: rgba(230, 126, 34, 0.2); }
.file-type-icon.code { background: rgba(231, 76, 60, 0.2); }

/* File Preview Actions */
.file-preview-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.preview-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-content-btn {
    background: rgba(52, 152, 219, 0.8);
    color: white;
}

.copy-content-btn:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-1px);
}

.download-file-btn {
    background: rgba(39, 174, 96, 0.8);
    color: white;
}

.download-file-btn:hover {
    background: rgba(34, 153, 84, 1);
    transform: translateY(-1px);
}

/* Scrollbar Styling for Text Preview */
.text-preview-container::-webkit-scrollbar {
    width: 6px;
}

.text-preview-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.text-preview-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.text-preview-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.file-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.file-download-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.file-download-item:last-child {
    margin-bottom: 0;
}

.file-download-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-download-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.file-download-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.file-download-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-left: 15px;
}

#download-all-btn {
    width: 100%;
    margin-top: 15px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.9);
    backdrop-filter: blur(10px);
}

#download-all-btn:hover {
    background: rgba(34, 153, 84, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Responsive enhancements for multi-file interface */
@media (max-width: 600px) {
    .file-preview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .file-preview-card {
        padding: 12px;
    }
    
    .file-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .text-preview-container {
        max-height: 150px;
    }
    
    .image-preview {
        max-height: 150px;
    }
    
    .file-preview-actions {
        justify-content: center;
        gap: 12px;
    }
    
    .preview-action-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .file-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-download-btn {
        margin-left: 0;
        align-self: stretch;
    }
    
    .multi-file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-btn {
        align-self: stretch;
        text-align: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .critical-error-notification {
        animation: none;
    }
    
    .success-message {
        animation: none;
    }
    
    .temporary-message {
        animation: none;
    }
    
    .progress-fill.loading {
        animation: none;
    }
    
    .drag-drop-area.drag-over {
        animation: none;
    }
    
    .file-download-item:hover {
        transform: none;
    }
    
    #download-all-btn:hover {
        transform: none;
    }
}