*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
    --primary-gradient-hover: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --accent-gradient: linear-gradient(135deg, #22c1c3 0%, #0ea5e9 100%);
    --danger-gradient: linear-gradient(135deg, #f97373 0%, #ef4444 100%);
    --success-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.72);
    --glass-border: rgba(148, 163, 184, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.7);
    
    /* Background gradients */
    --bg-gradient-main: radial-gradient(ellipse at top, #1d4ed8 0%, #0f172a 55%, #020617 100%);
    --bg-gradient-auth: radial-gradient(ellipse at top, #1d4ed8 0%, #1e293b 50%, #020617 100%);
    
    /* Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: rgba(15, 23, 42, 0.95);
    --bg-secondary: rgba(30, 41, 59, 0.8);
    --bg-elevated: rgba(51, 65, 85, 0.6);
    --border-color: rgba(148, 163, 184, 0.3);
    --border-color-hover: rgba(148, 163, 184, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
    --shadow-glow-strong: 0 0 30px rgba(102, 126, 234, 0.6);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    background: var(--bg-gradient-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--shadow-glow);
    }
    50% {
        box-shadow: var(--shadow-glow-strong);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Auth layout */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-gradient-auth);
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.auth-container {
    padding: 24px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow: var(--shadow-xl), var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

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

.app-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.auth-title {
    margin: 0 0 32px;
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.field-label input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.field-label input:hover {
    border-color: var(--border-color-hover);
    background: rgba(15, 23, 42, 0.8);
}

.field-label input:focus {
    border-color: #667eea;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-md);
    transform: translateY(-1px);
}

.field-label input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.error-text {
    margin-top: 8px;
    min-height: 20px;
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover:not(:disabled) span {
    transform: scale(1.1);
}

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

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

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

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

.primary-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-gradient-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
    transform: translateY(-2px);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.secondary-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.ghost-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.ghost-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.danger-btn {
    background: var(--danger-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 107, 107, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.danger-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* App layout */
.app-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-gradient-main);
    position: relative;
}

.app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 24px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    box-shadow: var(--shadow-xl), var(--glass-shadow);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.4));
    animation: pulse 3s ease-in-out infinite;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.disk-usage {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.app-main {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb-segment {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--text-secondary);
}

.breadcrumb-segment:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-separator {
    margin: 0 4px;
    opacity: 0.5;
    color: var(--text-muted);
    font-weight: 600;
}

.toolbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropzone {
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: left 0.5s;
}

.dropzone:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dropzone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: glow 2s ease-in-out infinite;
}

.dropzone.dragover::before {
    left: 0;
}

.file-list-container {
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.file-table thead {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.file-table th,
.file-table td {
    padding: 14px 16px;
    color: var(--text-primary);
}

.file-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
    font-size: 12px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.file-row {
    cursor: pointer;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.3s ease-out backwards;
}

.file-row:nth-child(1) { animation-delay: 0.05s; }
.file-row:nth-child(2) { animation-delay: 0.1s; }
.file-row:nth-child(3) { animation-delay: 0.15s; }
.file-row:nth-child(4) { animation-delay: 0.2s; }
.file-row:nth-child(5) { animation-delay: 0.25s; }

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

.file-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 rgba(102, 126, 234, 0.5);
}

.file-row.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: -4px 0 0 0 #667eea;
}

.file-row.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.file-row.drop-target {
    outline: 2px dashed #3b82f6;
    outline-offset: -2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.file-actions-btn {
    margin-left: auto;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 600;
    padding: 0;
    opacity: 0.6;
}

.file-actions-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-primary);
    opacity: 1;
}

.context-menu {
    position: absolute;
    z-index: 70;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: var(--shadow-lg), var(--glass-shadow);
    border: 1px solid var(--glass-border);
    min-width: 200px;
}

.context-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-item span {
    font-size: 16px;
}

.file-share-indicator {
    color: #4facfe;
    font-size: 16px;
    margin-left: 6px;
    cursor: help;
    filter: drop-shadow(0 2px 4px rgba(79, 172, 254, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

.file-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.file-type {
    color: var(--text-muted);
    font-size: 13px;
}

.file-size {
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.file-modified {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '📁';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: pulse 3s ease-in-out infinite;
}

.empty-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    padding: 28px 24px 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl), var(--glass-shadow);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.modal-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-input:focus {
    border-color: #667eea;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-md);
    transform: translateY(-1px);
}

.modal-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* Link cards */
#link-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.link-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.link-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.link-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.link-url-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-url-container:hover {
    border-color: var(--border-color-hover);
    background: rgba(15, 23, 42, 0.9);
}

.link-url {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 13px;
    color: #4facfe;
    word-break: break-all;
    background: transparent;
    border: none;
    outline: none;
    overflow-wrap: break-word;
    font-weight: 500;
}

.link-copy-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: var(--secondary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.link-copy-btn span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(79, 172, 254, 0.4);
}

.link-copy-btn:hover span {
    transform: scale(1.1);
}

.link-copy-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg), var(--glass-shadow);
    border: 1px solid var(--glass-border);
    z-index: 60;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
}

@media (max-width: 768px) {
    .app-shell {
        margin: 12px;
        border-radius: 20px;
    }

    .app-header {
        padding: 12px 16px;
    }

    .app-main {
        padding: 16px;
    }

    .toolbar {
        align-items: flex-start;
        gap: 10px;
    }

    .toolbar-buttons {
        width: 100%;
        justify-content: flex-start;
    }

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

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

    .modal {
        max-width: calc(100% - 32px);
        padding: 24px 20px 20px;
    }

    .auth-card {
        padding: 32px 24px 28px;
    }
}

/* Upload Progress */
.upload-progress-container {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-progress-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-md), var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-progress-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--glass-shadow);
}

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

.upload-progress-filename {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
    min-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress-size {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.upload-progress-percent {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.upload-progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.upload-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.upload-progress-item.upload-progress-success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.upload-progress-item.upload-progress-success .upload-progress-bar-fill {
    background: var(--success-gradient);
}

.upload-progress-item.upload-progress-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.upload-progress-item.upload-progress-error .upload-progress-bar-fill {
    background: var(--danger-gradient);
}

@media (max-width: 768px) {
    .upload-progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .upload-progress-filename {
        min-width: auto;
        width: 100%;
    }

    .upload-progress-size,
    .upload-progress-percent {
        font-size: 12px;
    }
}
