/* 
 * Secure File Storage System - SFile.mobi Inspired Design
 * Modern Purple & Dark Theme - Minimalist & Clean
 */

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

:root {
    /* SFile.mobi Blue Theme */
    --primary-blue: #1E88E5;
    --primary-blue-dark: #1565C0;
    --primary-blue-light: #42A5F5;
    --primary-blue-lighter: #90CAF9;
    --primary-blue-pale: #E3F2FD;
    
    /* Accent Colors */
    --accent-teal: #00ACC1;
    --success-green: #43A047;
    --danger-red: #E53935;
    --warning-orange: #FB8C00;
    
    /* Text Colors - Light Theme */
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-tertiary: #9E9E9E;
    --text-muted: #BDBDBD;
    
    /* Background & Surfaces - Clean White Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    --bg-hover: #F0F0F0;
    
    /* Borders */
    --border-light: #E0E0E0;
    --border-medium: #BDBDBD;
    --border-dark: #9E9E9E;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
}

.container-small {
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
header {
    background: var(--primary-blue);
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.9;
}

.logo::before {
    content: "📁";
    font-size: 28px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    background: transparent;
    border: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #FFFFFF;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.badge.admin {
    background: var(--danger-red);
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
}

.card-header::before {
    content: "";
    display: none;
}

.card-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all var(--transition-base);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

input[type="file"] {
    padding: 10px 16px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    background: var(--bg-primary);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--border-medium);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    display: none;
}

.btn:hover {
    background: var(--primary-blue-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

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

.btn-success {
    background: var(--success-green);
}

.btn-success:hover {
    background: #388E3C;
}

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

.btn-danger:hover {
    background: #C62828;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid;
    animation: slideDown 0.3s ease-out;
}

.alert::before {
    content: "ℹ️";
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: #E8F5E9;
    color: #1B5E20;
    border-color: var(--success-green);
}

.alert-success::before {
    content: "✓";
    background: var(--success-green);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-color: var(--danger-red);
}

.alert-error::before {
    content: "✕";
    background: var(--danger-red);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border-color: var(--primary-blue);
}

.alert-info::before {
    content: "i";
    background: var(--primary-blue);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.alert-warning {
    background: #FFF3E0;
    color: #E65100;
    border-color: var(--warning-orange);
}

.alert-warning::before {
    content: "⚠";
    background: var(--warning-orange);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

thead {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
}

tbody tr {
    transition: all var(--transition-fast);
}

tbody tr:hover {
    background: var(--bg-secondary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-blue);
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    display: none;
}

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

.stat-card.success {
    border-left-color: var(--success-green);
}

.stat-card.warning {
    border-left-color: var(--warning-orange);
}

.stat-card.danger {
    border-left-color: var(--danger-red);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-card.success .stat-value {
    color: var(--success-green);
}

.stat-card.warning .stat-value {
    color: var(--warning-orange);
}

.stat-card.danger .stat-value {
    color: var(--danger-red);
}

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

/* File List */
.file-list {
    display: grid;
    gap: 16px;
}

.file-item {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.file-item::before {
    content: '';
    display: none;
}

.file-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

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

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

.file-name::before {
    content: "";
    display: none;
}

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

.file-actions {
    display: flex;
    gap: 8px;
}

/* Multi-Select Checkbox */
.file-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 12px;
}

.file-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    border-radius: 4px;
}

.file-checkbox-input:checked ~ .file-info {
    opacity: 0.75;
}

/* Select All Bar */
.select-all-bar {
    background: var(--bg-secondary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 2px solid var(--border-light);
    transition: all var(--transition-fast);
}

.select-all-bar:hover {
    background: var(--primary-blue-pale);
    border-color: var(--primary-blue-light);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    border-radius: 4px;
}

.checkbox-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: var(--primary-blue);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-out;
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bulk-actions-content > span {
    font-weight: 600;
    font-size: 15px;
}

.bulk-actions-content > span::before {
    content: "";
    display: none;
}

.bulk-actions-buttons {
    display: flex;
    gap: 12px;
}

.bulk-actions-buttons .btn {
    color: var(--primary-blue);
    background: white;
    box-shadow: none;
}

.bulk-actions-buttons .btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-blue-dark);
}

.bulk-actions-buttons .btn-danger {
    background: var(--danger-red);
    color: white;
}

.bulk-actions-buttons .btn-danger:hover {
    background: #E91E63;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.upload-zone::before {
    content: '';
    display: none;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-pale);
}

.upload-zone:hover .upload-icon {
    transform: scale(1.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Upload Progress Bar */
.progress-item {
    background: var(--bg-primary);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.progress-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-blue-light);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.progress-filename {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-word;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-filename::before {
    content: "📤";
    font-size: 16px;
}

.progress-status {
    font-size: 13px;
    color: var(--text-tertiary);
    white-space: nowrap;
    font-weight: 500;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 102, 255, 0.06);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: progress-animation 1.5s ease-in-out infinite;
}

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

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Multi-Upload File List */
.multi-file-list {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 12px;
    padding: 4px;
}

.multi-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--transition-fast);
}

.multi-file-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

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

.file-name-small {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size-small {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.remove-file-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    opacity: 0.5;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    color: var(--danger-red);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    opacity: 1;
    background: #FFEBEE;
    transform: scale(1.1);
}

/* Scrollbar Styling for File List */
.multi-file-list::-webkit-scrollbar {
    width: 10px;
}

.multi-file-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.multi-file-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-tertiary);
}

.multi-file-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.hidden {
    display: none;
}

/* Text Color Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

strong, b {
    color: var(--text-primary);
}

small {
    color: var(--text-tertiary);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 24px auto;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease-out;
    border: 1px solid var(--border-light);
}

.modal-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.modal-body {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 16px;
    }
    
    /* Mobile Header */
    .header-content {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .logo {
        font-size: 20px;
        flex: 0 0 auto;
    }
    
    /* Show Hamburger on Mobile - at the right end */
    .hamburger {
        display: flex;
        order: 10;
    }
    
    /* Nav hidden by default */
    nav {
        order: 5;
    }
    
    /* User info before hamburger */
    .user-info {
        order: 9;
        margin-left: auto;
    }
    
    /* Hide navigation by default on mobile */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        order: 4;
    }
    
    nav.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 8px 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* User info on mobile - hide username, show only badge */
    .user-info {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .user-info span:first-child {
        display: none;
    }
    
    .badge {
        margin: 0;
    }
    
    .card {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    
    .card-header {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    h1 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }
    
    .file-item:hover {
        transform: none;
    }
    
    .file-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .file-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .table-container {
        font-size: 13px;
        border-radius: var(--radius-md);
    }
    
    th, td {
        padding: 12px 14px;
    }
    
    th {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
        padding: 24px;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    /* Multi-delete responsive */
    .bulk-actions-bar {
        padding: 14px 16px;
    }
    
    .bulk-actions-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .bulk-actions-content > span {
        font-size: 14px;
    }
    
    .bulk-actions-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .bulk-actions-buttons .btn {
        width: 100%;
    }
    
    /* Progress bar responsive */
    .progress-item {
        padding: 14px 16px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .progress-filename {
        font-size: 13px;
    }
    
    .progress-status {
        font-size: 12px;
    }
    
    .progress-bar-container {
        height: 28px;
    }
    
    .progress-percent {
        font-size: 12px;
    }
    
    /* Upload zone responsive */
    .upload-zone {
        padding: 48px 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .upload-hint {
        font-size: 13px;
    }
    
    /* Buttons responsive */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Auth Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-secondary);
}

.auth-container::before,
.auth-container::after {
    content: '';
    display: none;
}

.auth-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    padding: 2px 4px;
    border-radius: 4px;
}

.auth-footer a:hover {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue-dark);
}

/* Auth responsive */
@media (max-width: 768px) {
    /* Auth responsive */
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-md);
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    /* Quick actions responsive */
    .flex-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .flex-between > div {
        width: 100%;
    }
    
    .flex-between .btn {
        width: 100%;
    }
}
