/**
 * Buy DRM Purchase History Styles
 */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00ffff, #ff00ff);
}

.history-item:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateX(5px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.history-number {
    font-size: 14px;
    font-weight: bold;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.history-date {
    font-size: 12px;
    color: #888;
    font-family: monospace;
}

.history-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.history-amount {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amount-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.history-arrow {
    font-size: 20px;
    color: #00ffff;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .history-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-arrow {
        transform: rotate(90deg);
    }
    
    .amount-value {
        font-size: 14px;
    }
}

/* Loading state */
.history-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.history-loading::before {
    content: '⏳';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

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

/* Error state */
.history-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff4444;
}

.history-error::before {
    content: '⚠️';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Scrollbar styling */
.history-container::-webkit-scrollbar {
    width: 8px;
}

.history-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

