/**
 * FileShare Download Page Styles
 * Modern UI for 2025 with clean aesthetics
 */

:root {
    /* Color System */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
    
    /* Sizing and Spacing */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Sizing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-all: all 0.2s ease;
    --transition-colors: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
    --transition-opacity: opacity 0.2s ease;
    --transition-shadow: box-shadow 0.2s ease;
    --transition-transform: transform 0.2s ease;
    
    /* Composite Variables */
    --header-height: 4rem;
    --content-width: 1280px;
    --sidebar-width: 280px;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    scroll-behavior: smooth;
}

body {
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.5;
    font-size: 1rem;
    overflow-x: hidden;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--primary-700);
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* General Layout */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: var(--space-16) 0;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Navbar */

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-shine {
    position: relative;
    overflow: hidden;
}

.logo-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--neutral-700);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 var(--space-1);
}

.nav-link {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    color: var(--neutral-700);
    font-weight: 500;
    position: relative;
    transition: var(--transition-all);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Buttons */

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.813rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: white;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background-color: var(--neutral-50);
    border-color: var(--neutral-400);
    color: var(--neutral-900);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
}

.btn-ghost {
    background-color: transparent;
    color: var(--neutral-600);
}

.btn-ghost:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-800);
}

.btn-success {
    background-color: var(--success-500);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-600);
    color: white;
}

.btn-danger {
    background-color: var(--error-500);
    color: white;
}

.btn-danger:hover {
    background-color: var(--error-600);
    color: white;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.btn-group {
    display: flex;
    gap: var(--space-2);
}

/* Download Page Specific Styles */
.folder-header {
    background: linear-gradient(to right, rgba(124, 58, 237, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    border: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.folder-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(124, 58, 237, 0.03) 0%,
        rgba(16, 185, 129, 0.03) 30%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: rotate(-45deg);
    z-index: 0;
    pointer-events: none;
}

.folder-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.folder-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.folder-info {
    flex: 1;
}

.folder-info h1 {
    margin: 0 0 var(--space-1) 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.folder-info p {
    margin: 0;
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.folder-actions {
    display: flex;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.btn-download-all {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.btn-download-all:hover, 
.btn-download-all:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
    color: white;
}

.btn-download-all:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.btn-copy-link {
    background: white;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-900);
}

.btn-copy-link.copied {
    background: var(--success-50);
    border-color: var(--success-100);
    color: var(--success-600);
}

/* Files List */
.files-container {
    margin-top: var(--space-8);
}

.file-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    transition: all 0.3s ease;
}

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

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

.file-icon-wrapper.image {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.file-icon-wrapper.video {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
}

.file-icon-wrapper.audio {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.file-icon-wrapper.document {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
}

.file-icon-wrapper.archive {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.file-icon-wrapper.code {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}

.file-icon-wrapper.pdf {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.file-icon-wrapper.default {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.file-info {
    flex: 1;
    min-width: 0; /* Ensures text truncation works */
}

.file-name {
    margin: 0 0 var(--space-1) 0;
    font-weight: 500;
    font-size: 1rem;
    color: var(--neutral-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--neutral-500);
    font-size: 0.8125rem;
}

.file-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.file-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-file-action {
    background: white;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
}

.btn-file-action:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    color: var(--neutral-900);
}

.btn-download {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary-700);
}

.btn-download:hover {
    background: var(--primary-100);
    border-color: var(--primary-200);
    color: var(--primary-800);
}

.btn-preview {
    background: white;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
}

/* Progress Bar Styles */
.progress-container {
    margin-top: var(--space-6);
    display: none;
}

.progress-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.progress-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.progress-title {
    font-weight: 600;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.progress-status {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--neutral-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-600);
    font-size: 0.875rem;
}

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

.progress-details {
    color: var(--neutral-500);
}

.progress-actions {
    margin-top: var(--space-6);
    text-align: center;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

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

/* Modal Styles */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-6) var(--space-8);
}

.modal-title {
    font-weight: 600;
    color: var(--neutral-900);
}

.modal-body {
    padding: var(--space-8);
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: var(--space-6) var(--space-8);
}

.preview-container {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.preview-container video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.preview-container audio {
    width: 100%;
    display: block;
}

.preview-container iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.preview-container pre {
    background: var(--neutral-900);
    color: white;
    font-size: 0.875rem;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    overflow: auto;
    margin: 0;
    width: 100%;
    max-height: 70vh;
}

.preview-placeholder {
    text-align: center;
    padding: var(--space-8);
}

.preview-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    display: block;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.preview-placeholder h3 {
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.preview-placeholder p {
    color: var(--neutral-500);
    margin-bottom: var(--space-6);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-600);
    max-width: 350px;
}

.toast.success {
    border-left-color: var(--success-500);
}

.toast.error {
    border-left-color: var(--error-500);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: var(--success-50);
    color: var(--success-500);
}

.toast.error .toast-icon {
    background: var(--error-50);
    color: var(--error-500);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 var(--space-1) 0;
    color: var(--neutral-900);
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.toast-close:hover {
    color: var(--neutral-600);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.footer {
    background: var(--neutral-100);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-12);
    border-top: 1px solid var(--neutral-200);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-description {
    color: var(--neutral-600);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--neutral-200);
    color: var(--neutral-700);
    transition: var(--transition-all);
}

.social-link:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--neutral-600);
    transition: var(--transition-all);
}

.footer-links a:hover {
    color: var(--primary-600);
    padding-left: var(--space-1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    margin-top: var(--space-8);
}

.footer-bottom p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin: 0;
}

.footer-lang-selector .form-select {
    background-color: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-4);
    color: var(--neutral-700);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .folder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }
    
    .folder-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-md);
        padding: var(--space-4) 0;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-all);
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        padding: var(--space-3) var(--space-6);
        width: 100%;
    }
    
    .file-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .file-info {
        width: 100%;
    }
    
    .file-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .folder-actions {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
    }
    
    .btn-download-all, .btn-copy-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .folder-header {
        padding: var(--space-6);
    }
    
    .file-meta {
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-4);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}






/* Progress Container */
.progress-container {
    display: none;
    margin-bottom: 24px;
}

.progress-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.progress-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-title i {
    color: var(--primary-color);
}

.progress-status {
    color: var(--gray-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar-wrapper {
    height: 10px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s ease-in-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

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

.progress-actions {
    display: none;
    text-align: center;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: toast-in 0.3s ease forwards;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toast-in {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success .toast-icon {
    background: var(--success-color);
}

.toast.error .toast-icon {
    background: var(--error-color);
}

.toast.info .toast-icon {
    background: var(--primary-color);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    margin: 0 0 4px 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.toast-message {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--dark-color);
}

/* Spinner for loading */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

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

/* Folder Header */
.folder-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.folder-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.folder-info h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--dark-color);
}

.folder-info p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.875rem;
}

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