.downloads-page {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.downloads-header h2 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 600;
}

.downloads-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.storage-stats {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
}

.storage-stats h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--background);
    border-radius: 8px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--accent);
}

.queue-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
}

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

.queue-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.clear-queue-btn {
    padding: 8px 16px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.clear-queue-btn:hover {
    opacity: 0.8;
}

.queue-status {
    color: var(--text-secondary);
}

.queue-empty {
    color: var(--text-secondary);
    font-style: italic;
}

.active-downloads {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
}

.active-downloads h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.download-id {
    font-weight: 500;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--background-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.download-instructions {
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
}

.download-instructions h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.download-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.download-instructions li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .downloads-page {
        padding: 15px;
    }
    
    .downloads-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .queue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .download-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .download-id {
        max-width: 100%;
    }
}
