/* Import Outfit and Inter Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: rgba(20, 20, 25, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --accent-hover: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --sidebar-width: 270px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

/* Dashboard Layout */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 12, 0.85);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 50;
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-shadow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.nav-item.active svg {
    color: var(--accent);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Main Container Workspace */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.main-header {
    background: rgba(10, 10, 12, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.main-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.mobile-menu-trigger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.header-badge svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.content-workspace {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Tool Sections Toggling */
.tool-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tool-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Grid Layouts */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 360px 1fr;
    }
}

/* Drag and Drop Zone */
.dropzone-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.dropzone {
    width: 100%;
    max-width: 800px;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.03);
    box-shadow: var(--glow-shadow);
}

.dropzone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: -50px;
    pointer-events: none;
}

.dropzone-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dropzone:hover .dropzone-icon-container {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.dropzone-icon-container svg {
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
}

.dropzone:hover .dropzone-icon-container svg {
    color: var(--accent);
}

.dropzone-text h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dropzone-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hidden-input {
    display: none;
}

/* File Information Cards */
.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
}

.file-icon {
    width: 46px;
    height: 46px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.file-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.file-icon.danger svg {
    color: var(--danger);
}

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

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.remove-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Sidebar & Generic Panels */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Option Tabs */
.mode-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mode-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.mode-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mode-tab.active {
    background: rgba(139, 92, 246, 0.06);
    border-color: var(--accent);
}

.mode-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.mode-tab.active .mode-radio {
    border-color: var(--accent);
}

.mode-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
}

.mode-tab.active .mode-radio::after {
    transform: scale(1);
}

.mode-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mode-name {
    font-size: 0.92rem;
    font-weight: 600;
}

.mode-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Form Settings Input Boxes */
.control-settings-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

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

.input-field {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    transition: var(--transition);
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.select-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

.select-field option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.password-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

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

.info-banner {
    display: flex;
    gap: 0.6rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.78rem;
    color: #c084fc;
    line-height: 1.4;
}

.info-banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Button Custom Styles */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--glow-shadow);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Preview Containers & Page grids */
.preview-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.preview-actions {
    display: flex;
    gap: 0.75rem;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
    max-height: 580px;
    overflow-y: auto;
    padding: 0.5rem;
}

.page-item {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.page-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-item.selected {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background: #151518;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.thumbnail-canvas, .thumbnail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.page-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.page-item.selected .page-number {
    color: var(--accent);
}

.selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.page-item.selected .selection-indicator {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.selection-indicator svg {
    width: 11px;
    height: 11px;
    color: white;
    transform: scale(0);
    transition: var(--transition);
}

.page-item.selected .selection-indicator svg {
    transform: scale(1);
}

.group-badge {
    position: absolute;
    bottom: 32px;
    left: 8px;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    z-index: 2;
    display: none;
}

/* PDF Merger Reordering list styling */
.files-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.25rem;
}

.merge-file-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.merge-file-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.merge-file-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex-grow: 1;
}

.merge-file-index {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.merge-file-details {
    min-width: 0;
}

.merge-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merge-file-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.merge-file-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.action-icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.action-icon-btn.danger-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.action-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* Modals & Dialog overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #0c0c0f;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
}

.spinner-icon svg {
    width: 32px;
    height: 32px;
}

.animate-spin-icon {
    animation: spin 2s linear infinite;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 9999px;
    transition: width 0.1s linear;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.success-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

.success-icon-container svg {
    width: 40px;
    height: 40px;
}

.download-list {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem;
    text-align: left;
}

.download-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.download-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.download-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.mobile-active {
        left: 0;
    }
    
    .mobile-menu-trigger {
        display: block;
    }
}
