:root {
    /* Light theme variables */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #34A853;
    --secondary-dark: #2d9348;
    --accent-color: #FBBC05;
    --accent-dark: #f0ad00;
    --danger-color: #EA4335;
    --danger-dark: #d73125;
    --warning-color: #FF9800;
    --info-color: #17a2b8;

    /* Surface colors */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-elevated: #ffffff;
    --surface-secondary: #f1f5f9;
    --surface-tertiary: #e2e8f0;

    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Border and shadow */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #6d28d9 100%);
    --gradient-upload: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

/* REALLY dark theme variables */
[data-theme="dark"] {
    --primary-color: #a78bfa;
    --primary-dark: #8b5cf6;
    --primary-light: #c4b5fd;
    --secondary-color: #4AE66E;
    --secondary-dark: #34A853;
    --accent-color: #FFD54F;
    --accent-dark: #FBBC05;
    --danger-color: #FF6B6B;
    --danger-dark: #EA4335;
    --warning-color: #FFB74D;
    --info-color: #4FC3F7;

    /* Surface colors - REALLY dark */
    --background-color: #000000;
    --surface-color: #0a0a0a;
    --surface-elevated: #0f0f0f;
    --surface-secondary: #1a1a1a;
    --surface-tertiary: #262626;

    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0a0a0a;

    /* Border and shadow */
    --border-color: #262626;
    --border-light: #1a1a1a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 10px 10px -5px rgb(0 0 0 / 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #5b21b6 0%, #4c1d95 50%, #3730a3 100%);
    --gradient-upload: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

/* System theme detection */
@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --primary-color: #a78bfa;
        --primary-dark: #8b5cf6;
        --primary-light: #c4b5fd;
        --secondary-color: #4AE66E;
        --secondary-dark: #34A853;
        --accent-color: #FFD54F;
        --accent-dark: #FBBC05;
        --danger-color: #FF6B6B;
        --danger-dark: #EA4335;
        --warning-color: #FFB74D;
        --info-color: #4FC3F7;

        --background-color: #000000;
        --surface-color: #0a0a0a;
        --surface-elevated: #0f0f0f;
        --surface-secondary: #1a1a1a;
        --surface-tertiary: #262626;

        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --text-inverse: #0a0a0a;

        --border-color: #262626;
        --border-light: #1a1a1a;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 10px 10px -5px rgb(0 0 0 / 0.3);

        --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
        --gradient-hero: linear-gradient(135deg, #5b21b6 0%, #4c1d95 50%, #3730a3 100%);
        --gradient-upload: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    background: var(--gradient-hero);
    color: var(--text-inverse);
    padding: 4rem 0;
    margin: -2rem -1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

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

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.header-right {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.theme-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.theme-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
}

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    padding: 2rem 2rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Configuration Info */
.config-card {
    background: var(--gradient-upload);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

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

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.config-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.config-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.config-value {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Authentication Card */
.auth-card {
    border: 2px solid var(--primary-color);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.token-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.token-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.token-toggle:hover {
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-hint a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-hint a:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--surface-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-google {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    gap: 0.75rem;
}

.btn-google:hover {
    background: var(--surface-secondary);
    border-color: var(--primary-color);
}

.btn-google img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--surface-secondary);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.02);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.02);
}

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

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-area.dragover .upload-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.upload-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#fileInput {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Upload Progress */
.upload-progress {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percentage {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.progress-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Files List */
.files-list {
    max-height: 400px;
    overflow-y: auto;
}

.files-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.file-item:hover {
    background: var(--surface-elevated);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-inverse);
    flex-shrink: 0;
}

.file-icon.pdf { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.file-icon.doc { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.file-icon.txt { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.file-icon.image { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.file-icon.zip { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.file-icon.default { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

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

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-action {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    background: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-action:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

.file-action.danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--surface-secondary);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Activity Log */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--border-color);
    margin-bottom: 0.75rem;
    background: var(--surface-elevated);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.3s ease;
}

.log-item.success {
    border-left-color: var(--secondary-color);
    background: rgba(52, 168, 83, 0.05);
}

.log-item.error {
    border-left-color: var(--danger-color);
    background: rgba(234, 67, 53, 0.05);
}

.log-item.info {
    border-left-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.log-item.warning {
    border-left-color: var(--warning-color);
    background: rgba(255, 152, 0, 0.05);
}

.log-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface-color);
    color: var(--text-secondary);
}

.log-item.success .log-icon {
    background: var(--secondary-color);
    color: var(--text-inverse);
}

.log-item.error .log-icon {
    background: var(--danger-color);
    color: var(--text-inverse);
}

.log-item.info .log-icon {
    background: var(--primary-color);
    color: var(--text-inverse);
}

.log-item.warning .log-icon {
    background: var(--warning-color);
    color: var(--text-inverse);
}

.log-content {
    flex: 1;
}

.log-message {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.log-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

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

.modal-footer {
    background: var(--surface-secondary);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

.preview-content {
    text-align: center;
    padding: 2rem;
}

.preview-content img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.preview-content .file-info {
    background: var(--surface-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        margin: -1rem -1rem 2rem;
        padding: 3rem 0;
    }

    .header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-right {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .auth-actions {
        flex-direction: column;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-text h3 {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .file-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .file-actions {
        justify-content: center;
    }

    .modal-content {
        margin: 1rem;
        max-width: none;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0;
    }

    .card-header,
    .card-body {
        padding: 1.5rem;
    }

    .theme-selector {
        flex-direction: column;
        gap: 0.125rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Scrollbar styling */
.files-list::-webkit-scrollbar,
.activity-log::-webkit-scrollbar {
    width: 6px;
}

.files-list::-webkit-scrollbar-track,
.activity-log::-webkit-scrollbar-track {
    background: transparent;
}

.files-list::-webkit-scrollbar-thumb,
.activity-log::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.files-list::-webkit-scrollbar-thumb:hover,
.activity-log::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}