/* Modern Apple-inspired Design - Ultra Clean, Glassmorphism, Professional */

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

:root {
    --color-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-surface-solid: #ffffff;
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-accent: #007aff;
    --color-accent-hover: #0051d5;
    --color-accent-light: rgba(0, 122, 255, 0.1);
    --color-success: #34c759;
    --color-error: #ff3b30;
    --color-warning: #ff9500;
    --color-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 8px 32px rgba(0, 122, 255, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --blur: blur(20px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 20px;
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(90, 200, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 149, 0, 0.05) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 840px;
    margin: 0 auto;
    background: var(--color-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: containerFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    padding: 72px 40px 48px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.3), transparent);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -1px;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, #1d1d1f 0%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: -0.2px;
    animation: subtitleFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
}

/* Header Instruction - Vereinfacht in Grauton */
.header-instruction {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.header-instruction p {
    margin: 0;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.header-instruction p strong {
    color: #666;
    font-weight: 500;
}

.btn-link {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-link:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

/* Standardisierte Buttons - alle verwenden btn-primary oder btn-secondary */
.btn-copy-session,
.btn-new-session,
.file-item-actions button {
    /* Verwenden btn-secondary Stil */
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-session:hover,
.btn-new-session:hover,
.file-item-actions button:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Session Info */
.session-info {
    margin-top: 24px;
    padding: 16px 24px;
    background: rgba(0, 122, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.session-id-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.session-value {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: var(--color-accent);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.btn-copy-session,
.btn-new-session {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-session:hover,
.btn-new-session:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-copy-session svg {
    width: 14px;
    height: 14px;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
main {
    padding: 40px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 96px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-area::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.upload-area:hover {
    border-color: var(--color-accent);
    border-width: 2.5px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-accent);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover::after {
    opacity: 1;
}

.upload-area.dragover {
    border-color: var(--color-accent);
    border-width: 3px;
    background: rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: scale(1.02);
    box-shadow: var(--shadow-accent);
}

.upload-area.dragover::before {
    opacity: 1;
}

.upload-area.dragover::after {
    opacity: 0.5;
    animation: pulse 1s ease-in-out infinite;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 72px;
    height: 72px;
    color: var(--color-accent);
    margin: 0 auto 28px;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.2));
}

.upload-area:hover .upload-icon {
    opacity: 1;
    transform: translateY(-6px) scale(1.1);
    filter: drop-shadow(0 8px 24px rgba(0, 122, 255, 0.4));
}

.upload-area.dragover .upload-icon {
    animation: iconBounce 0.6s ease infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.15); }
}

.upload-area h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
}

.upload-area p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #5ac8fa 100%);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:active::before {
    width: 400px;
    height: 400px;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-text {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-text:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Uploads Section */
.uploads-section {
    margin-top: 40px;
}

.uploads-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
}

.upload-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.upload-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), #5ac8fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 122, 255, 0.2);
}

.upload-item:hover::before {
    opacity: 1;
}

.upload-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

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

.upload-item-name {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.queue-position {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.upload-item-size {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.upload-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Progress Bar */
.progress-container {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, #5ac8fa 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    animation: progressGradient 2s linear infinite;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    font-weight: 400;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-badge.pending {
    background: rgba(255, 149, 0, 0.1);
    color: var(--color-warning);
}

.status-badge.uploading {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-accent);
}

.status-badge.completed {
    background: rgba(52, 199, 89, 0.1);
    color: var(--color-success);
}

.status-badge.error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--color-error);
}

.status-badge.paused {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-secondary);
}

/* Status Messages */
.status-message {
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

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

.status-success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--color-success);
    border-left: 3px solid var(--color-success);
}

.status-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--color-error);
    border-left: 3px solid var(--color-error);
}

.status-info {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
}

.status-warning {
    background: rgba(255, 149, 0, 0.1);
    color: var(--color-warning);
    border-left: 3px solid var(--color-warning);
}

/* Fallback-Hinweis (NAS nicht erreichbar) */
.fallback-hint {
    padding: 16px 24px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 149, 0, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(255, 149, 0, 0.4);
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
footer {
    padding: 32px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-secondary);
    font-size: 13px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.2), transparent);
}

footer p {
    margin: 8px 0;
}

.version-badge {
    display: none;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-border);
    border-radius: 6px;
}

.footer-note {
    font-size: 11px;
    color: var(--color-text-secondary);
    opacity: 0.8;
    margin-top: 12px;
    line-height: 1.5;
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Versteckter Admin-Link im Footer */
.footer-admin-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-link-hidden {
    color: #bbb;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.footer-link-hidden:hover {
    color: #999;
    opacity: 0.8;
    text-decoration: none;
}

/* Download Section */
.download-section {
    margin-bottom: 40px;
}

.session-input-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.session-input-container label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.session-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Courier New', monospace;
    background: var(--color-surface-solid);
    color: var(--color-text-primary);
    transition: all 0.2s ease;
}

.session-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.input-hint {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* Files List */
.files-list {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
}

.files-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.files-list h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
    flex: 1;
}

#downloadAllBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#downloadAllBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#filesContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.file-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.8);
}

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

.file-item-name {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    word-break: break-word;
    font-size: 15px;
}

.file-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.file-size {
    font-weight: 500;
}

.file-date {
    opacity: 0.8;
}

.file-item-actions {
    flex-shrink: 0;
    margin-left: 16px;
}

.file-item-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
}

.file-item-actions .btn-primary svg {
    width: 16px;
    height: 16px;
}

.no-files {
    text-align: center;
    padding: 40px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

/* Loading Status */
.loading-status {
    text-align: center;
    padding: 40px;
    color: var(--color-text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 122, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-status p {
    font-size: 15px;
    margin: 0;
}

/* Error Message */
.error-message {
    background: rgba(255, 59, 48, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--color-error);
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive für Download */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .session-input {
        width: 100%;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .file-item-actions {
        width: 100%;
        margin-left: 0;
    }

    .file-item-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .header-brand {
        flex-direction: column;
    }

    .header-logo {
        width: 80px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    header {
        padding: 40px 24px 32px;
    }

    .header-brand {
        gap: 16px;
    }

    .header-logo {
        width: 90px;
    }

    header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 15px;
    }

    main {
        padding: 24px;
    }

    .upload-area {
        padding: 60px 24px;
    }

    .upload-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .upload-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    footer {
        padding: 20px 24px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
        --color-surface: rgba(29, 29, 31, 0.7);
        --color-surface-solid: #1d1d1f;
        --color-text-primary: #f5f5f7;
        --color-text-secondary: #86868b;
        --color-border: rgba(255, 255, 255, 0.1);
    }

    body::before {
        background: 
            radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(90, 200, 250, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(255, 149, 0, 0.08) 0%, transparent 50%);
    }

    header {
        background: linear-gradient(180deg, rgba(29, 29, 31, 0.9) 0%, rgba(20, 20, 22, 0.6) 100%);
    }

    header h1 {
        background: linear-gradient(135deg, #f5f5f7 0%, #007aff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .upload-area {
        background: rgba(255, 255, 255, 0.05);
    }

    .upload-item {
        background: rgba(29, 29, 31, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .progress-bar {
        background: rgba(255, 255, 255, 0.1);
    }

    footer {
        background: rgba(29, 29, 31, 0.4);
    }
}

