/* Downloads Page Styles */
.dl-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dl-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dl-info {
    flex: 1;
}

.dl-info h4 {
    color: #3498db;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.dl-description {
    color: #bdc3c7;
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 12px 0;
}

.dl-meta span {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.dl-meta .dl-size {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.dl-meta .dl-version {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.dl-meta .dl-type {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.3);
}

.dl-meta .dl-downloads {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.dl-info time {
    color: #95a5a6;
    font-size: 0.9rem;
    font-style: italic;
}

.dl-actions {
    flex-shrink: 0;
}

.dl-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.dl-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.dl-btn.primary {
    background: linear-gradient(45deg, #27ae60, #229954);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.dl-btn.primary:hover {
    background: linear-gradient(45deg, #229954, #1e8449);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.dl-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dl-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .dl-meta {
        justify-content: center;
        gap: 10px;
    }

    .dl-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .dl-actions {
        width: 100%;
    }

    .dl-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}

/* No downloads message */
.no-downloads {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Loading animation for downloads */
.dl-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: dlSpin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes dlSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Download progress indicator */
.download-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Success message */
.download-success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(39, 174, 96, 0.3);
    margin-top: 10px;
    display: none;
}

/* Error message */
.download-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-top: 10px;
    display: none;
}