/* История скачиваний */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--tg-theme-hint-color, #eee);
}

.history-header h3 {
    font-size: 16px;
    margin: 0;
}

.btn-clear {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #ff3b30;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
}

.btn-clear:hover {
    background: rgba(255, 59, 48, 0.1);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--tg-theme-hint-color, #eee);
    font-size: 12px;
}

.history-item-info {
    flex: 1;
    overflow: hidden;
}

.history-item-url {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-details {
    color: var(--tg-theme-hint-color, #666);
    font-size: 10px;
}

.history-item-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.history-item-status.pending {
    background: #ffc107;
    color: #000;
}

.history-item-status.success {
    background: #28a745;
    color: #fff;
}

.history-item-status.error {
    background: #dc3545;
    color: #fff;
}

.empty-history {
    text-align: center;
    padding: 20px;
    color: var(--tg-theme-hint-color, #666);
    font-size: 14px;
}