/* Marketplace History Panel Styles */

.history-panel {
    width: 300px;
    background: white;
    border-left: 1px solid #e6ebf1;
    overflow-y: auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e6ebf1;
    background: #f8f9fa;
}

.history-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
}

.close-history {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-history:hover {
    color: #333;
}

.history-content {
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
}

.history-item.sold {
    border-left: 4px solid #28a745;
}

.history-item:not(.sold) {
    border-left: 4px solid #ffc107;
}

.history-nft {
    display: flex;
    gap: 12px;
    flex: 1;
}

.history-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.history-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.history-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.history-info {
    text-align: right;
    font-size: 12px;
}

.history-status {
    font-weight: 600;
    margin-bottom: 4px;
}

.history-price {
    font-weight: 600;
    color: #0052ff;
    margin-bottom: 4px;
}

.history-time {
    color: #666;
    margin-bottom: 4px;
}

.history-buyer {
    color: #28a745;
    font-size: 11px;
}

.history-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .history-panel {
        width: 100vw;
    }
    
    .history-toggle {
        left: 10px;
        padding: 10px 12px;
        font-size: 12px;
    }
}